• 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: "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


  • Follow-Ups:
    • Re: Problem with NSImageCell and -setImageScaling
      • From: Glenn Zelniker <email@hidden>
References: 
 >Problem with NSImageCell and -setImageScaling (From: Glenn Zelniker <email@hidden>)

  • Prev by Date: Problem with NSImageCell and -setImageScaling
  • Next by Date: Re: How to add my cocoa app at system preferences others categary
  • Previous by thread: Problem with NSImageCell and -setImageScaling
  • Next by thread: Re: Problem with NSImageCell and -setImageScaling
  • Index(es):
    • Date
    • Thread