• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Multiple Views in a Single Drawer??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Multiple Views in a Single Drawer?? (From: Leon Shivamber <email@hidden>)

  • Prev by Date: Re: Framework in application with Xcode ?
  • Next by Date: Re: Unclear on NSView's isOpaque concept (and optimization in general)
  • Previous by thread: Multiple Views in a Single Drawer??
  • Next by thread: Re: Multiple Views in a Single Drawer??
  • Index(es):
    • Date
    • Thread