Getting a NSView pointer from a nib
Getting a NSView pointer from a nib
- Subject: Getting a NSView pointer from a nib
- From: Milen Dzhumerov <email@hidden>
- Date: Fri, 28 Apr 2006 14:27:03 +0100
Hi all,
I was wondering today if is possible to retrieve a NSView* from a
nib. For example I have a nib which just contains a custom view on
which several controls are laid out. What I want to do is get a
pointer to that view (instantiate the nib first) and make it the
content view of another window (eg. the custom view could contain
preferences controls for a preferences window). I'm also wondering
how am I going to connect the separate nib with the rest of the
application... I suppose I have to do everything programmatically.
Thanks for your help.
PS. I should note that I'm not quite familiar with the whole Nib
concept so I'm trying to apply techniques from other programming
environments (I'm basically thinking of Nib files as files describing
interface elements which I can instantiate later programmatically
somewhere in the application a la Glade from the GTK+ environment).
I'm getting a few books on Cocoa next week so I won't bother the list
anymore with my lame (and probably off-topic) question.
Kind regards,
Milen Dzhumerov
Web: http://1nsp1r3d.co.uk/
Email: email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden