Re: NSDrawer: How to change default 'opening distance'? SOLVED!
Re: NSDrawer: How to change default 'opening distance'? SOLVED!
- Subject: Re: NSDrawer: How to change default 'opening distance'? SOLVED!
- From: Julian Barkway <email@hidden>
- Date: Tue, 24 Sep 2002 20:18:49 +0200
Well, I've now played with setContentSize: and this does what I want,
so I guess I've answered my own question.... ;-)
On Tuesday, September 24, 2002, at 07:48 pm, Julian Barkway wrote:
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.
--
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.