• 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: comboBox menu choice validation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: comboBox menu choice validation


  • Subject: Re: comboBox menu choice validation
  • From: Marten van Gelderen <email@hidden>
  • Date: Thu, 19 Feb 2004 15:00:57 +0100

Phillip,

Mea culpa, I guess you are right. In fact in another (main) part of my program I do construct a dynamic menu depending on the contents/layout of the file system. This comboBox is only in a preferences panel and out of curiosity I changed an ordinary textField into a comboBox and populated the box first from IB and next from a "factory" defaults file in the bundle (if present).

So what you are saying is that comboBox menu items ("under" the box) should either be grayed-out (if that were possible) or always be functional/valid.

Which brings me to a thought I had previously: why not make the comboBox menu more like an ordinary menu? Same background, for instance, same separator items, possibility to gray-out etc. etc.

Anyway, thanks for your answer.

On 19 Feb 2004, at 2:26 PM, Phillip Mills wrote:

On Thursday 19 February 2004 08:04, Marten van Gelderen wrote:
depending on the current working directory in the
filesystem, not all (predefined) menu choices are valid

I realize that this is not actually an answer to your question, but.... Why
not populate the menu dynamically and only put things into it that are valid
for the current conditions? It's usually better for program maintenance and
certainly better for the user.

My number one complaint when working on Windows systems -- even more than BSOD
and virii -- is that much software on that platform is sloppy about
engineering out invalid choices. (I absolutely hate being offered a choice
and then being told I was wrong to think it should be functional...or just
having it quietly do nothing.)

--
Phillip Mills
Multi-platform software development
(416) 224-0714
_______________________________________________
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.


--
Groeten, Marten
_______________________________________________
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.

References: 
 >comboBox menu choice validation (From: Marten van Gelderen <email@hidden>)
 >Re: comboBox menu choice validation (From: Phillip Mills <email@hidden>)

  • Prev by Date: Re: NSFontManager's delegate.
  • Next by Date: Re: A 'small' NSMenu
  • Previous by thread: Re: comboBox menu choice validation
  • Next by thread: Re: comboBox menu choice validation
  • Index(es):
    • Date
    • Thread