Re: Deactivating toolbar
Re: Deactivating toolbar
- Subject: Re: Deactivating toolbar
- From: David Remahl <email@hidden>
- Date: Fri, 30 Aug 2002 07:45:46 +0200
>
Don't try to emulate the behaviour of the toolbar in the Finder - it is
>
not a true toolbar, but rather some hack that they put togehter before
>
toolbars were available in Carbon (that goes for a lot of things in the
>
Finder). At some point they will move to a standard toolbar and then it
>
will work like any other toolbar on the system.
>
>
That said, if you have strong reasons to do this you could always
>
listen for NSApplicationDidResignActiveNotification and
>
NSApplicationWillBecomeActiveNotification notifications (from
>
NSApplication) in order to change the validated state of your toolbar
>
items.
>
>
But again, I would recomend against doing this because you would have a
>
toolbar that works different than every other Cocoa toolbar on Mac OS X.
>
>
j o a r
According to the Aqua Human Interface Design Guidelines, controls that cause
non-destructive actions should be available for click-through. Buttons that
can destroy data should disable when the window is deactivated and thus
require one click to bring the window to the front and one to trigger the
action. In general, the Cocoa behaviour is the correct one, but there are
some exceptions.
/ David
_______________________________________________
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.