Re: Super-sized NSDrawer
Re: Super-sized NSDrawer
- Subject: Re: Super-sized NSDrawer
- From: Glen Low <email@hidden>
- Date: Sun, 1 Jul 2007 00:58:48 +0800
All
Thanks for all your input.
I'm rather partial to the drawer concept, since it's so much more
physical than merely hiding and showing pieces of a window. Of course
on a nice big LCD screen with windows that don't go all the way to
the edge (see, I never liked the maximize button in Windows which
makes the main window greedily suck up all available desktop space --
drawers would never work in the Windows UI), it's great for UI that
you don't always have to access.
Given the physical concept it's trying to imitate, I can see why
there's a such a restriction: real drawers are not larger than their
frames. Unless you're near a black hole :-)
On the other hand, I'm trying to limit the need for vertical scroll
bars on varying numbers of name-value pairs, so that the user doesn't
need to scroll down to get at the last few name-value pairs. So when
the drawer should show, it would show all the name-value pairs
without a scroll bar, which means it might have a larger height than
the original window.
Anyway, I solved the problem, more or less:
1. Main content in a view A, "drawer" content in view B. Set A to
autoresize with the window, and B to maintain fixed size.
2. When I need to show/hide the "drawer", I set A to maintain fixed
size and B to autoresize with the window, then I resize the window
sufficiently to display the new content or hide it. I then switch
back the autoresizing.
I might try out Russ' idea as well.
On 26/06/2007, at 5:53 AM, Uli Kusterer wrote:
On Jun 22, 2007, at 7:20 PM, Glen Low wrote:
The NSDrawer docs state an NSDrawer that displays below a window
cannot have a height larger than the height of the original
window. If it appears to the left or right, it cannot be wider
than the original window. Any way to get around this restriction,
or any suggestion for a UI that works like a drawer but doesn't
have this restriction?
Use a split view at the edge of the window that's collapsed? Apple
seems to be moving away from drawers anyway. Mail already lost its,
and other apps have followed.
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
Cheers, Glen Low
---
pixelglow software | simply brilliant stuff
www.pixelglow.com
aim: pixglen
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden