NSTableView Always Undesirably Selects First Row when It Loses Key Focus
NSTableView Always Undesirably Selects First Row when It Loses Key Focus
- Subject: NSTableView Always Undesirably Selects First Row when It Loses Key Focus
- From: Grant Erickson <email@hidden>
- Date: Fri, 23 Oct 2009 16:31:27 -0700
- Thread-topic: NSTableView Always Undesirably Selects First Row when It Loses Key Focus
I have a device list in my preference pane implemented as a NSTableView
under 10.5, not unlike the list of network devices in Apple's Network
preference pane.
Unlike the Network table, in my case there is no mandate that an item (i.e.
row) always be selected. However, if there are no rows selected, when I hit
the tab key to change the key focus from my table to the preferences search
field, the table automatically, yet undesirably, selects the first row.
Is this standard, albeit undocumented, NSTableView behavior? If so, what is
the best way to prevent this from happening? Is one of the should*Select*
delegate methods most appropriate?
Thanks,
Grant
_______________________________________________
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