how to set placeholder for NSImageView
how to set placeholder for NSImageView
- Subject: how to set placeholder for NSImageView
- From: norio <email@hidden>
- Date: Wed, 23 Jan 2008 23:49:27 +0900
Hi
I'd like to have my image view drawn "No Picture" tiff in Resources
folder when nothing selected.
How do I do that? Is it possible to do with IB, setting NoSelection to
relative or absolute path?
Or I need to set default placeholder using setDefaultPlaceholder?
I did for the purpose like below but I missed something.
- (void) awakeFromNib
{
NSString* fileNameWithPath = [[[NSBundle mainBundle] resourcePath]
stringByAppendingPathComponent:@"NoPicture.tiff"];
[NSObject setDefaultPlaceholder:self forMarker:NSNoSelectionMarker
withBinding:fileNameWithPath];
}
Would you tell me how to do that?
Thanks in advance.
Norio Ota
_______________________________________________
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