Re: Multiple Views in a Single Drawer??
Re: Multiple Views in a Single Drawer??
- Subject: Re: Multiple Views in a Single Drawer??
- From: Alastair Houghton <email@hidden>
- Date: Thu, 6 Nov 2003 10:54:50 +0000
On 6 Nov 2003, at 04:43, Leon Shivamber wrote:
Greetings. I am a newbie looking for some help.
I have a window with two buttons which I would like to open a drawer
to the right. However, I want the content to be different for each
button. So far in IB I have used a NSDrawer and NSWindow object from
the pallete, connected the first button to the NSDrawer with the
toggle action. So far this works and my content view shows fine.Can I
created a second content view but cant figure out how to connect it to
the NSDrawer and the second button. Is there an easy way to do this?
If I were you, I'd use a separate NSDrawer. Otherwise you'll have to
add/remove views from the view hierarchy in the drawer (or, if you can
live with only running on Panther and newer, you could just use
NSView's -setHidden: method to show/hide the views you want to see).
Having a separate drawer also means that, should it prove desirable,
you will be able to open *both* drawers simultaneously.
Kind regards,
Alastair.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.