Problem with NSImageCell and -setImageScaling
Problem with NSImageCell and -setImageScaling
- Subject: Problem with NSImageCell and -setImageScaling
- From: Glenn Zelniker <email@hidden>
- Date: Wed, 21 Mar 2007 12:05:06 -0400
I'm having a strange problem with an NSImageCell. Here's code snippet:
NSImageCell *imCell = [[NSCell alloc] initImageCell:myImage]];
[imCell setImageScaling:NSScaleToFit];
This compiles fine without any warnings, but when it runs I get an
exception that looks like this:
****** -[NSCell setImageScaling:]: selector not recognized.
I don't understand why the image cell looks like an NSCell (although
I guess it's because NSImageCell is part of a class cluster). How can
I get this to work?
Glenn Z
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden