Re: Newbie: Simple display with NSView - problem
Re: Newbie: Simple display with NSView - problem
- Subject: Re: Newbie: Simple display with NSView - problem
- From: Genu Mathew <email@hidden>
- Date: Mon, 6 Oct 2008 09:46:49 -0700 (PDT)
> I'm pretty sure this isn't what you're
> proposing, but it could be one interpretation of your
> description!
Sorry, I should have phrased it better. I am trying to avoid hardcoding the filenames into the custom views
> In the NIB, just use a "custom view", then set
> its class to your class
> name. Then you don't have to instantiate it in code at
> all - it's
> already in existence in the NIB. When the NIB is loaded you
> can set
> the filename of the image, most likely using the
> -awakeFromNib
> message. To obtain the reference to the view, add an
> IBOutlet to its
> controller and link it up in IB. Then you can use that
> outlet to refer
> to the view.
I tried you suggestion and it worked. Thanks a lot !!!!!!!
Genu
_______________________________________________
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