Re: drawers closes, but is visible
Re: drawers closes, but is visible
- Subject: Re: drawers closes, but is visible
- From: Paul Cezanne <email@hidden>
- Date: Mon, 11 Nov 2002 13:18:42 -0500
At 3:49 PM -0400 10/26/02, Bill Cheeseman wrote:
>
From your original description of what you were doing, it struck me that the
>
problem isn't just having a drawer that's too large.
That was exactly the problem. My fix was toresize it to 0,0 before the close and it closes fine and stays closed.
>
I couldn't put my
>
finger on it, though. But Matt's right, you shouldn't make it larger than
>
its parent window. In fact, you aren't supposed to set its height (for a
>
left or right drawer) at all, but let Cocoa calculate it for you.
Well, that's actually hard to do. In my app, when my right facing window is set to 0,0, it is actually set to say 300 tall by 0 wide. At sometime in the future when the parent window changes size to be less than 300 tall, the 300x0 drawer REAPPEARS. Tell me that's not gross.
Ok, so I resize it again to 0,0. Yeah, it flashes briefly. Love it...
At 4:29 PM -0400 10/26/02, Brian E. Howard wrote:
>
Well, duh, it's a metaphor. A drawer that was too big for the dresser would look pretty strange.
Thanks for your kind and helpful words. :-)
A trash can that hold infinite items? A desktop that can sort items alphabetically? (Man, I need one of those at home!) A metaphor isn't meant to be limiting, just helpful.
My point is still valid, this is a bug. Cocoa should NOT enforce that HI design goal by having windows appear at sometime in the future when the parent window resizes. Maybe post a notification, blat something to the Console, but having a random action is just plain wrong.
This is also a new behavior to Jaguar.
_______________________________________________
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.