I am getting the error for using the NSImage in this function in m开发者_开发问答y appcontroller like expected ')' before NSImage.
- (void)imageReceived:(NSImage *)image forRequest:(NSString *)identifier
{
NSString *path = [[NSString stringWithFormat:@"~/Desktop/%@.tiff", identifier]
stringByExpandingTildeInPath];
[[image TIFFRepresentation] writeToFile:path atomically:NO];
}
i have check my program i got no syntax error but still i have this error in my app. i have taken the code from mgtwitterengine and using it for iphone in my app as given in its read me file.
NSImage
is not available on the iPhone since it is part of the AppKit framework in Cocoa. You will need to deal with UIImage
instead, which is from the UIKit framework in Cocoa Touch.
精彩评论