• 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: Nick Zitzmann <email@hidden>
  • Date: Wed, 10 Dec 2008 13:58:26 -0700


On Dec 10, 2008, at 1:50 PM, aaron smith wrote:

How do I go about create views separately, and attaching them to the
NSWindow, based on the toolbar buttons.


Create them programmatically using -initWithFrame:, do any setup work you have to do, then add them as either the content view of a window, or a subview of the content view.

Either that, or archive them in a nib, load the nib, and then attach them to the window or window's content view. Do whichever is easiest for you.

Nick Zitzmann
<http://www.chronosnet.com/>

_______________________________________________

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


References: 
 >Newbie. Creating SubViews that aren't associated with NSWindow, or NSPanel? (From: "aaron smith" <email@hidden>)

  • Prev by Date: Re: Date Formatter year input without year display
  • Next by Date: Re: Newbie. Creating SubViews that aren't associated with NSWindow, or NSPanel?
  • Previous by thread: 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