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: "aaron smith" <email@hidden>
- Date: Wed, 10 Dec 2008 14:46:26 -0800
Sweet. Thanks Nick!
On Wed, Dec 10, 2008 at 2:38 PM, Nick Zitzmann <email@hidden> wrote:
>
> 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