mirror of
https://github.com/darlinghq/darling-cocotron.git
synced 2024-11-23 12:09:51 +00:00
parent
d35dfd5dbf
commit
309746b175
@ -126,7 +126,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
||||
}
|
||||
|
||||
-initWithFocusedViewRect:(NSRect)rect {
|
||||
return [self initWithData:CGContextCaptureBitmap(NSCurrentGraphicsPort(), rect)];
|
||||
return [self initWithData:(NSData *)CGContextCaptureBitmap(NSCurrentGraphicsPort(), rect)];
|
||||
}
|
||||
|
||||
-initWithData:(NSData *)data {
|
||||
|
@ -216,7 +216,7 @@ static NSPrintOperation *_currentOperation=nil;
|
||||
else if(_type==NSPrintOperationPDFInRect){
|
||||
NSDictionary *auxiliaryInfo=[NSDictionary dictionaryWithObject:[[_view window] title] forKey:(NSString *)kCGPDFContextTitle];
|
||||
|
||||
CGDataConsumerRef consumer=CGDataConsumerCreateWithCFData(_mutableData);
|
||||
CGDataConsumerRef consumer=CGDataConsumerCreateWithCFData((CFMutableDataRef)_mutableData);
|
||||
|
||||
context=CGPDFContextCreate(consumer,&_insideRect,(CFDictionaryRef)auxiliaryInfo);
|
||||
[(id)context autorelease];
|
||||
|
@ -9,7 +9,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
||||
#import "O2DataConsumer.h"
|
||||
|
||||
CGDataConsumerRef CGDataConsumerCreateWithCFData(CFMutableDataRef data) {
|
||||
return O2DataConsumerCreateWithCFData(data);
|
||||
return O2DataConsumerCreateWithCFData((NSMutableData *)data);
|
||||
}
|
||||
|
||||
void CGDataConsumerRelease(CGDataConsumerRef self){
|
||||
|
@ -18,7 +18,7 @@ void CGDataProviderRelease(CGDataProviderRef provider) {
|
||||
}
|
||||
|
||||
CGDataProviderRef CGDataProviderCreateWithCFData(CFDataRef data) {
|
||||
return O2DataProviderCreateWithCFData(data);
|
||||
return O2DataProviderCreateWithCFData((NSData *)data);
|
||||
}
|
||||
|
||||
COREGRAPHICS_EXPORT CGDataProviderRef CGDataProviderCreateWithData(void *info,const void *data,size_t size,CGDataProviderReleaseDataCallback releaseCallback) {
|
||||
|
@ -36,10 +36,6 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
||||
}
|
||||
|
||||
|
||||
-init {
|
||||
return [self initWithObjects:NULL forKeys:NULL count:0];
|
||||
}
|
||||
|
||||
-initWithObjects:(id *)objects forKeys:(id *)keys count:(NSUInteger)count {
|
||||
NSInvalidAbstractInvocation();
|
||||
return nil;
|
||||
|
@ -26,6 +26,10 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
||||
return NSAutorelease(NSEnumerator_dictionaryKeysNew(_table));
|
||||
}
|
||||
|
||||
-init {
|
||||
return [self initWithObjects:NULL forKeys:NULL count:0];
|
||||
}
|
||||
|
||||
-initWithObjects:(id *)objects forKeys:(id *)keys count:(NSUInteger)count {
|
||||
NSInteger i;
|
||||
|
||||
|
@ -50,6 +50,10 @@ static inline void setObjectForKey(NSMutableDictionary_mapTable *self,id object,
|
||||
NSMapRemove(_table,key);
|
||||
}
|
||||
|
||||
-init {
|
||||
return [self initWithObjects:NULL forKeys:NULL count:0];
|
||||
}
|
||||
|
||||
-initWithCapacity:(NSUInteger)capacity {
|
||||
_table=NSCreateMapTableWithZone(NSObjectMapKeyCallBacks,
|
||||
NSObjectMapValueCallBacks,capacity,NULL);
|
||||
|
@ -18,6 +18,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
||||
}
|
||||
|
||||
-(BOOL)isRunning;
|
||||
-(void)receiveAllData;
|
||||
-(NSURLResponse *)response;
|
||||
-(NSError *)error;
|
||||
-(NSMutableData *)data;
|
||||
|
Loading…
Reference in New Issue
Block a user