views:

173

answers:

1

I am getting the error for using the NSImage in this function in my 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.

+4  A: 

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.

dreamlax