Re: Problem with NSImageCell and -setImageScaling
Re: Problem with NSImageCell and -setImageScaling
- Subject: Re: Problem with NSImageCell and -setImageScaling
- From: Glenn Zelniker <email@hidden>
- Date: Wed, 21 Mar 2007 13:12:34 -0400
On Mar 21, 2007, at 12:14 PM, Stephen Deken wrote:
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.
That did it! Thanks.
_______________________________________________
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