• 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
Re: Newbie. Creating SubViews that aren't associated with NSWindow, or NSPanel?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Newbie. Creating SubViews that aren't associated with NSWindow, or NSPanel?
      • From: Carlos Eduardo Mello <email@hidden>
References: 
 >Newbie. Creating SubViews that aren't associated with NSWindow, or NSPanel? (From: "aaron smith" <email@hidden>)
 >Re: Newbie. Creating SubViews that aren't associated with NSWindow, or NSPanel? (From: Brandon Walkin <email@hidden>)
 >Re: Newbie. Creating SubViews that aren't associated with NSWindow, or NSPanel? (From: "aaron smith" <email@hidden>)

  • Prev by Date: Re: Newbie. Creating SubViews that aren't associated with NSWindow, or NSPanel?
  • Next by Date: Re: How to launch window of the application on clicking of dock icon?
  • Previous by thread: Re: Newbie. Creating SubViews that aren't associated with NSWindow, or NSPanel?
  • Next by thread: Re: Newbie. Creating SubViews that aren't associated with NSWindow, or NSPanel?
  • Index(es):
    • Date
    • Thread