• 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 15:38:08 -0700


On Dec 10, 2008, at 3:30 PM, aaron smith wrote:

-So I would use a separate nib that contains NSPanels, with the views
layed out in that, load the nib, then attach it's content to the main
windows content?

You don't even need panels; custom views can be placed at the top of a nib.


-I did think of this, but wasn't sure if this would be bad practice. I
wouldn't see why it would be bad, but wasn't sure. In any case I think
trying to do it without tabs is a good exercise.


Actually, using NSTabView is a good idea if you just want to replace one view with another. You can configure it so that the tabs don't actually show, and can only be changed programmatically. I've done this before with good results.

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


  • Follow-Ups:
    • Re: Newbie. Creating SubViews that aren't associated with NSWindow, or NSPanel?
      • From: "aaron smith" <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: Starting Cocoa apps from the command line
  • Next by Date: Re: Newbie. Creating SubViews that aren't associated with NSWindow, or NSPanel?
  • 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