Hey Ken and Nick, thanks for the feedback. I have continuing questions
if you wouldn't mind.
"archive them in a nib, load the nib, and then attach them to the
window or window's content view."
-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?
"Why not use a tab view?"
-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.
"Views don't need to be contained in a window in the nib. You can drag
a view from the library directly into the nib. You can then set up
outlets from, for example, File's Owner to these views to reference
them later in the code."
-So, by doing this, you don't get to visually see the view in
interface builder? But through code you would piece it all together?
Is there a way to visually see in interface builder the view, without
it being in a window/panel?
Thanks a lot for the feedback.
On Wed, Dec 10, 2008 at 1:13 PM, Brandon Walkin <email@hidden>
wrote:
Hi,
I've released a free plugin for Interface Builder 3 that contains
an easy to
use tabbed toolbar that should suit your needs. You can grab it
here: http://www.brandonwalkin.com/blog/2008/11/13/introducing-bwtoolkit/
Cheers,
Brandon
On 10-Dec-08, at 3:50 PM, aaron smith wrote:
Hey All, this could be a newbie question, or a somewhat mid-level
question. Basically, I don't understand how I can create "views" that
aren't associated with an NSWindow, or NSPanel.
Here's a breakdown of what I'm trying to accomplish..
-I have a MainMenu nib.
-in that it has the usual 1 window.
-On the Window, I have a NSToolbar.
-The NSToolbar has 2 buttons (view1,view2) View 1 will be the
default.
Now what I want to do is show/hide view1/view2 depending on which
button you click. What I'm confused about is achieving "tab" like
behavior, without using a tab view.
How do I go about create views separately, and attaching them to the
NSWindow, based on the toolbar buttons. I'm looking for is some
direction.
Here's kind of what I was thinking..
option 1. Create multiple NSWindows or NSPanels, for view1,view2. Use
the contentView property of those windows to attach to my main window
when you've clicked a toolbar button.
option 2. Use separate nibs for the views, each nib would be an
NSPanel. Then the main bundle loads those nibs in, attaches it's
contentView to the main bundle's main view.
Is this the right direction? I'd really appreciate some feedback.
Thanks all
_______________________________________________
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
_______________________________________________
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