• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [NSDrawer] Why isn't my default button blue+pulsing?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [NSDrawer] Why isn't my default button blue+pulsing?


  • Subject: Re: [NSDrawer] Why isn't my default button blue+pulsing?
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Sun, 5 Jun 2005 18:45:25 +0200

At 12:16 Uhr -0400 05.06.2005, Cameron Hayne wrote:
On 5-Jun-05, at 5:07 AM, Frédéric BLANC wrote:
I've re-read the corresponding sections in the Apple HIG
document w/o finding any relevant info :( ! (Abstract: "A drawer can
contain any control that is appropriate to its intended use."

Okay, I agree that the HIG document is wishy-washy about when to use drawers. But I think the intended use of drawers is for displaying auxiliary information. Any pushbuttons in a drawer should be related to control of that auxiliary information. The action of the main window should not be affected by whether or not a drawer is open.
Thus it seems to me that you are misusing drawers if you are expecting that a pushbutton in a drawer will be the default button.
I'm just guessing, but it seems that you probably should be using a sheet (or a dialog) instead of a drawer if you want the user's focus to be concentrated on that pushbutton.

I vote in support of Cameron. It sounds like a GUI faux pas to me to have a default button that can be hidden away. The default button is the main button in a panel, a very important action. A drawer, on the other hand, is for stuff that is auxiliary, that a user doesn't have to know about. The two seem to contradict each other.


Furthermore, only the default button in the main window (As in AppKit's "windowDidBecomeMain", not "main" like it's used in regular English, and I don't think it depends on "key" either) will pulse. A drawer is a second window that is attached to and subordinate to another window. As such, the owning window is typically main. Having an owning window that isn't main, but a drawer that is isn't technically possible, I think (at least, there'd be no good visual feedback from AppKit), and probably hasn't been tested by Apple.

If you find yourself in a GUI-wise dubious and potentially contradicting scenario *and* fighting the frameworks, you are probably doing a mistake in your GUI. Or you have a very exotic and unique situation. But since statistics are by definition in favor of non-exotic situations, I hope you won't feel offended if I assume that's not the case here.

BTW -- If you're interested in such things, there's the Mac-GUI-Dev mailing list at http://groups.yahoo.com/group/mac-gui-dev/ -- that's just the kind of topic for that list, and there are probably a lot of people interested in helping you work out an alternate design. Disclaimer: I'm the List-Op there.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >[NSDrawer] Why isn't my default button blue+pulsing? (From: Frédéric BLANC <email@hidden>)
 >Re: [NSDrawer] Why isn't my default button blue+pulsing? (From: Cameron Hayne <email@hidden>)

  • Prev by Date: Re: NSSegmentedControl discrepancies between 10.3 and 10.4
  • Next by Date: Re: ISync Plug-in
  • Previous by thread: Re: [NSDrawer] Why isn't my default button blue+pulsing?
  • Next by thread: Re: [NSDrawer] Why isn't my default button blue+pulsing?
  • Index(es):
    • Date
    • Thread