Remove NSTableView Default Selection
Remove NSTableView Default Selection
- Subject: Remove NSTableView Default Selection
- From: John McIntosh <email@hidden>
- Date: Thu, 24 Sep 2009 19:07:04 -0500
Hello all. I am working on an application that contains a NSTableView.
The table view has a single column which display several options.
Based on the row that the user selects, something is displayed. When
the application is first launched, the first row in the table is
selected by default (but not processed as a selection because it was
not actually clicked). I want no rows to be selected when it is first
launched. So, the functionality is correct now, but I need the first
(or any other) row not to be preselected.
I have a button to clear the selection. In its code, I send a
deselectAll message to the table which correctly clears the selection.
I assumed that I could send the same deselectAll message in either an
awakeFromNib function or applicationDidFinishLaunching. However,
neither of these clears the selection.
I would greatly appreciate any advice. Thank you.
John
_______________________________________________
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