Re: Dynamically loading a part of a Window in Cocoa
Re: Dynamically loading a part of a Window in Cocoa
- Subject: Re: Dynamically loading a part of a Window in Cocoa
- From: Robert Martin <email@hidden>
- Date: Wed, 1 Jul 2009 03:36:35 -0400
Perhaps the simplest way is to use a NSTabView - (you can set it to
tabless). Then create all of your 'unrelated views' in separate tabs,
and switch the tabs in your code.
On Jul 1, 2009, at 3:21 AM, Debajit Adhikary wrote:
I have an area of a Window (in my MainMenu.xib) which I'd like to
populate
dynamically with unrelated "views" such as an NSTable,
IKImageBrowserView
etc. at different points of time depending on some user-selected
criteria.
- How do I define this area of the window such that it can be
"replaced"
with different views?
- How do I attach a table or some other view to this area of the
window?
(Is it enough to place a generic NSView there and add a subview each
time?
I'm fairly new to Cocoa, so any pointers are welcome)
_______________________________________________
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