• 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
Re: Problem with NSImageCell and -setImageScaling
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Problem with NSImageCell and -setImageScaling (From: Glenn Zelniker <email@hidden>)
 >Re: Problem with NSImageCell and -setImageScaling (From: "Stephen Deken" <email@hidden>)

  • Prev by Date: Re: Application Caches
  • Next by Date: Re: How can I combine 2 data buffers?
  • Previous by thread: Re: Problem with NSImageCell and -setImageScaling
  • Next by thread: imageNamed cannot load an image
  • Index(es):
    • Date
    • Thread