NSBitmapImageRep lost methods?
NSBitmapImageRep lost methods?
- Subject: NSBitmapImageRep lost methods?
- From: Chris Herborth <email@hidden>
- Date: Mon, 23 May 2005 08:37:50 -0400
- Organization: Arcane Dragon Software
Developing under Tiger and porting some X11 code to Cocoa, I'm creating
an NSBitmapImageRep thusly:
NSBitmapImageRep *xi = nil;
NSBundle *bundle = [NSBundle bundleForClass:[globalSelf class]];
NSString *path = [bundle pathForResource:@"matrix3" ofType:@"png"];
xi = [NSBitmapImageRep imageRepWithContentsOfFile:path];
Later, the code munges some pixels in the image, so I'm using the
getPixel and setPixel methods of NSBitmapImageRep. Except, I get the
following sinister compiler warnings:
warning: `NSBitmapImageRep' may not respond to `-getPixel:atX:y:'
warning: cannot find method `-getPixel:atX:y:'; return type `id' assumed
warning: `NSBitmapImageRep' may not respond to `-setPixel:atX:y:'
warning: cannot find method `-setPixel:atX:y:'; return type `id' assumed
Are these deprecated methods or something? The documentation doesn't
say anything to suggest that these shouldn't be used...
Thanks!
--
Chris Herborth (email@hidden)
http://www.pobox.com/~chrish/osx/
Never send a monster to do the work of an evil scientist.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden