Re: Drawer size reverts to window size automatically. Why?
Re: Drawer size reverts to window size automatically. Why?
- Subject: Re: Drawer size reverts to window size automatically. Why?
- From: Matt Neuburg <email@hidden>
- Date: Mon, 9 Sep 2002 07:46:07 -0700
On Sun, 8 Sep 2002 13:45:10 +0100, Jeremy Dronfield
<email@hidden> said:
>
On Sunday, September 8, 2002, at 08:33 am, David Rehring wrote:
>
>
> On 9/7/02 11:28 PM, John McGruer at email@hidden wrote:
>
>> out, but works perfectly other than that. However, if a user tries to
>
>> resize
>
>> the drawer the drawer immediately drops down to the same (to my eye)
>
>> width
>
>> as the parent window
>
>
Yes, it is an enforced HIG issue, but if your drawer absolutely has to
>
be wider than the window, you can use your own brute force by
>
implementing the following delegate method:
>
>
- (NSSize)drawerWillResizeContents:(NSDrawer *)sender
>
toSize:(NSSize)contentSize
>
{
>
NSRect view = [[sender contentView] frame];
>
NSSize stayPut = view.size;
>
return stayPut;
>
}
Another approach is to question whether you need a drawer or not. Jaguar
provides the wonderful new parent window - child window paradigm for
pairing windows. This has saved my butt, for sure. m.
--
matt neuburg, phd = email@hidden,
http://www.tidbits.com/matt
pantes anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart.
http://www.tidbits.com/
_______________________________________________
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.