Re: Dynamically Loading NSComboBox From a Database.
Re: Dynamically Loading NSComboBox From a Database.
- Subject: Re: Dynamically Loading NSComboBox From a Database.
- From: Chris Hanson <email@hidden>
- Date: Mon, 1 Apr 2002 20:16:29 -0600
At 3:51 PM -0800 4/1/02, Jim Murry wrote:
I would like to populate a NSComboBox just prior to displaying the
possible items from a database. I do not know how to intercept the
click so that I can dispose of the old data and display fresh data
so that it would display the most recent changes.
It would be better to design your application to go the opposite
direction: Update the contents of the menu whenever your data model
changes. This way, you don't wind up with situations where the user
clicks on the popup menu[1] and then waits for a database operation
to time out.
In general, when doing Cocoa development you're better off trying to
work within the framework and patterns it provides than you are
trying to second-guess it.
-- Chris
[1] This is a general plea to developers: *Please* use a popup menu
unless you specifically need a combo box. Don't just use a combo box
because that's what you'd use on Windows or X11 or in Java; these
platforms have combo boxes because they don't have real popup menus...
--
Chris Hanson | Email: email@hidden
bDistributed.com, Inc. | Phone: +1-847-372-3955
Mac OS X & WebObjects Consulting | Fax: +1-847-589-3738
http://bdistributed.com/ | Personal Email: email@hidden
_______________________________________________
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.