Re: Newbie. Creating SubViews that aren't associated with NSWindow, or NSPanel?
Re: Newbie. Creating SubViews that aren't associated with NSWindow, or NSPanel?
- Subject: Re: Newbie. Creating SubViews that aren't associated with NSWindow, or NSPanel?
- From: Ken Thomases <email@hidden>
- Date: Wed, 10 Dec 2008 16:47:47 -0600
On Dec 10, 2008, at 4:30 PM, aaron smith wrote:
"Views don't need to be contained in a window in the nib. You can drag
a view from the library directly into the nib. You can then set up
outlets from, for example, File's Owner to these views to reference
them later in the code."
-So, by doing this, you don't get to visually see the view in
interface builder? But through code you would piece it all together?
Is there a way to visually see in interface builder the view, without
it being in a window/panel?
Working with a stand-alone view in a nib _does_ let you visually
design it. Interface Builder does show it in a window frame when
you're editing it, but it isn't really in a window.
You can drag a custom view out of the library, or you can copy the
content view of a window and then paste it at the top level. You can
also drag a window's content view into the library so that the library
will have a ready-made plain (non-custom) NSView for your future use.
Cheers,
Ken
_______________________________________________
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