Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Working around incompatible pointer via NSImage and NSStatusBar

I'm giving a status bar item an image through NSImage. I'm running into were the app builds and opens in the status bar, but the image I want dosen't display. I receive a warning saying "Incompatible pointer types sending 'NSString' to parameter of type "NSImage". It's displayed to this code...


- (void)setImage:(NSImage *)image{
[statusItem setImage:@"cargo-menu.png"];
}
-(void)setAlternateImage:(NSImage *)image{

}

iMac, Mac OS X (10.6.6), Mac Mini/MacBook Pro

Posted on Mar 27, 2011 7:07 PM

Reply

There are no replies.

Working around incompatible pointer via NSImage and NSStatusBar

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.