Skip navigation.
 
ml[NSImageView setImage:nil] clarification
FROM : matt.gough
DATE : Thu May 15 12:37:18 2008

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

Related mailsAuthorDate
ml[NSImageView setImage:nil] clarification matt.gough May 15, 12:37
mlRe: [NSImageView setImage:nil] clarification Jens Alfke May 15, 17:06