• 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
how to set placeholder for NSImageView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Get font name and size chosen - Got it
  • Next by Date: Changing keyboard settings in code?
  • Previous by thread: Get font name and size chosen - Got it
  • Next by thread: Changing keyboard settings in code?
  • Index(es):
    • Date
    • Thread