• 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
[NSImageView setImage:nil] clarification
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[NSImageView setImage:nil] clarification


  • Subject: [NSImageView setImage:nil] clarification
  • From: email@hidden
  • Date: Thu, 15 May 2008 12:37:18 +0200

It isn't explicitly mentioning anywhere, but is:

[someImageView setImage:nil];

the correct way to have an empty image view.

Often the Appkit documentation calls out the validity of nil parameters (e.g [NSActionCell setImage:] and [NSLevelIndicator setImage:]), so the lack of such a statement in NSImageView got me worried.

Thanks

Matt
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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: [NSImageView setImage:nil] clarification
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Problem with NSFileManger directoryContentsAtPath
  • Next by Date: Re: Assertion failure in -[NSNextStepFrame lockFocus]
  • Previous by thread: Re: Problem with NSFileManger directoryContentsAtPath
  • Next by thread: Re: [NSImageView setImage:nil] clarification
  • Index(es):
    • Date
    • Thread