• 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
Remove NSTableView Default Selection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Remove NSTableView Default Selection
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: Core Data: relationship 'too large' when saving
  • Next by Date: Re: Subview drawn with reverted order
  • Previous by thread: Global Hotkeys - Trouble with sizeof EventHotKeyRef
  • Next by thread: Re: Remove NSTableView Default Selection
  • Index(es):
    • Date
    • Thread