Re: Problem with NSImageCell and -setImageScaling
Re: Problem with NSImageCell and -setImageScaling
- Subject: Re: Problem with NSImageCell and -setImageScaling
- From: "Stephen Deken" <email@hidden>
- Date: Wed, 21 Mar 2007 11:14:16 -0500
On 3/21/07, Glenn Zelniker <email@hidden> wrote:
NSImageCell *imCell = [[NSCell alloc] initImageCell:myImage]];
You're creating a bog-standard NSCell here, even though you're using
the 'initImageCell:' initializer. You'll have to change this line to:
NSImageCell *imCell = [[NSImageCell alloc] initImageCell:myImage];
I don't know why the 'initImageCell:' is a method on NSCell, but in
order to get an actual NSImageCell, you have to allocate one in the
first place.
--
Stephen Deken
email@hidden
_______________________________________________
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