Re: Swapping contents of windows from nibs
Re: Swapping contents of windows from nibs
- Subject: Re: Swapping contents of windows from nibs
- From: Daniel Griscom <email@hidden>
- Date: Thu, 8 Nov 2007 09:43:12 -0500
At 9:37 AM -0500 11/8/07, Daniel T. Staal wrote:
On Thu, November 8, 2007 8:54 am, Timothy Collett said:
Greetings.
I've been trying to figure out how to do something for a little
while, and maybe I'm asking too much, or maybe I'm just looking in
the wrong documentation, but so far, I haven't found any way to do it...
What I want to do is design several windows in Interface Builder, all
the same size and shape, and programmatically swap out the contents
of one for another--similar to the way a CardLayout works in Java.
I think 'windows' is probably the wrong term for what you are trying to
do, if I'm understanding you correctly. Check out NSTabView and see if it
does about what you are looking for. (This would put everything in one
window, but allow you to swap out the contents with alternate contents.)
Note that NSTabView doesn't actually have to have visible tabs; you
can just have a stacked set of views and switch between them at need.
Dan
--
Daniel T. Griscom email@hidden
Suitable Systems http://www.suitable.com/
1 Centre Street, Suite 204 (781) 665-0053
Wakefield, MA 01880-2400
_______________________________________________
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