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

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


  • Follow-Ups:
    • Re: Problem with NSImageCell and -setImageScaling
      • From: "Stephen Deken" <email@hidden>
  • Prev by Date: Re: Displaying Cocoa NIBs from Carbon?
  • Next by Date: Re: Problem with NSImageCell and -setImageScaling
  • Previous by thread: Re: Application Caches
  • Next by thread: Re: Problem with NSImageCell and -setImageScaling
  • Index(es):
    • Date
    • Thread