• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSBitmapImageRep lost methods?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSBitmapImageRep lost methods?
      • From: Fritz Anderson <email@hidden>
  • Prev by Date: [ANN] piratewatch.org developer community
  • Next by Date: Printing my document
  • Previous by thread: [ANN] piratewatch.org developer community
  • Next by thread: Re: NSBitmapImageRep lost methods?
  • Index(es):
    • Date
    • Thread