• 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: Cocoa Drawers Example
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa Drawers Example


  • Subject: Re: Cocoa Drawers Example
  • From: Scott Anguish <email@hidden>
  • Date: Wed, 6 Jun 2001 17:13:45 -0400

What are you specifically trying to do?

At the simplest level you can drag out a window from the IB Palette that has an NSDrawer already attached, and it will put the various items into your nib (a window, the drawer and a top level content view which is correctly connected to the drawer).

The basic idea though is that you can drag a drawer into your nib, and then control-drag to make the connection from that drawer to the 'parentWindow' that it belongs too. You must then connect the 'contentView' of the drawer to the view that you want to have inside the drawer area (add a customview/NSView to the top level of your nib by dragging it from the palette).

Then, just drop in a button in the main window, control-drag it to the NSDrawer icon and connect it to toggle: and you have a basic drawers implementation setup!


References: 
 >Cocoa Drawers Example (From: Prem Chopra <email@hidden>)

  • Prev by Date: Messed up NSTextField labels - thread issue?
  • Next by Date: Re: Newbie: how to build data base
  • Previous by thread: Re: Cocoa Drawers Example
  • Next by thread: Re: Threads in Apps
  • Index(es):
    • Date
    • Thread