Re: Programmatically opening an NSComboBox list
Re: Programmatically opening an NSComboBox list
- Subject: Re: Programmatically opening an NSComboBox list
- From: Kyle Sluder <email@hidden>
- Date: Sun, 22 Feb 2009 16:56:08 -0500
On Sat, Feb 21, 2009 at 7:17 AM, Peter Hudson <email@hidden> wrote:
> I notice from the docs that the button and text field are encapsulated in an
> NSComboBoxCell. Have checked the cell docs - can't see any means to get to
> the button.
Probably because there is no "button", per se. Unlike views, which
exist in a hierarchy and are accessible as such, cells are much more
lightweight beasts. Often times (NSTableView being a great example),
the cell doesn't actually exist in any way related to the view, but it
simply used to draw the view's content. In NSTableView's case, the
table view takes care of things related to the overall view, like what
portion of the view is visible, and just uses each column's cell to
draw the contents of each row.
In short, the relationship between views and visible on-screen objects
is *much* tighter than that between cells and on-screen objects.
--Kyle Sluder
_______________________________________________
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