• 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
NSDrawer: How to change default 'opening distance'?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSDrawer: How to change default 'opening distance'?


  • Subject: NSDrawer: How to change default 'opening distance'?
  • From: Julian Barkway <email@hidden>
  • Date: Tue, 24 Sep 2002 19:48:25 +0200

I have an NSDrawer in my app, the content of which is slightly too big to be fully shown when the drawer is open to the 'standard' distance. Obviously people can simply drag the drawer out further to see everything but it's tiresome having to do this every time the app is launched. Is there some way I can either change the default so that more of the drawer is visible when it is first opened or so that I can save the preferred opening distance when the app terminates and restore it later?

I have scoured the docs, the sample code and the various list archives but with no success. I've even tried other apps that use drawers to see if the desired behaviour is indeed possible. Surprisingly, the only 'drawered' app I've found that behaves the way I want is Mail. So, are Apple programmers being sneaky and overriding private methods or is there some subtlety that I'm missing. Any ideas?

Looking at the AppKit framework headers, there are a couple of interesting-looking (i.e. undocumented) private ivars, _drawerPercent and _drawerPercentSaved. Could these be the answer?

--
Julian Barkway,
Zurich,
Switzerland.
_______________________________________________
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.

  • Follow-Ups:
    • Re: NSDrawer: How to change default 'opening distance'?
      • From: Andreas Mayer <email@hidden>
    • Re: NSDrawer: How to change default 'opening distance'? SOLVED!
      • From: Julian Barkway <email@hidden>
  • Prev by Date: [Q] Selecting "selected" tab views
  • Next by Date: Re: Dragging inside and outside of a view
  • Previous by thread: Re: [Q] Selecting "selected" tab views
  • Next by thread: Re: NSDrawer: How to change default 'opening distance'? SOLVED!
  • Index(es):
    • Date
    • Thread