Re: NSImageView drawing the NSImage...
Re: NSImageView drawing the NSImage...
- Subject: Re: NSImageView drawing the NSImage...
- From: John Randolph <email@hidden>
- Date: Thu, 11 Mar 2004 17:22:58 -0800
On Mar 11, 2004, at 4:31 PM, Allan Dushan wrote:
John,
Thank you for the help. This appears to be exactly what I need, but I
am not sure how to get an NSCachedImageRep.
Do I call NSImage's -representations method to retrieve an array of
NSImageReps, and then enumerate through the NSImageRep's until I find
one that is of the class NSCachedImageRep and ask for its -size?
Yep.
Or, do I get the first NSImageRep in the array and ask for it's -size?
The one you want *may* be the first one, but I wouldn't count on it.
Just take a look at it in the debugger, and see what's in there..
-jcr
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.