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

Re: NSTableView Selection


  • Subject: Re: NSTableView Selection
  • From: Corbin Dunn <email@hidden>
  • Date: Fri, 12 Dec 2008 11:14:35 -0800


On Dec 12, 2008, at 10:02 AM, David Blanton wrote:

How do I keep the first row in a table view from being selected when the table first loads?

The issue is that to get a selection did change for the first row I have to first select a different row because the first row is 'auto selected' when the table first loads.

You probably have it set to always maintain a selection. This is somewhat of a bug; if tableview is maintaing the selection, then it should send you the notification. Please do log a bug, especially if you have a test case.


Ideally, on program startup, you should explicitly select a particular row, and then perform some action based on that (probably the same action you would do when the selection changes). This way you can always ensure your app is properly setup like you expect. Plus, you may want to restore the last state that was set in the app.

corbin


_______________________________________________

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


References: 
 >NSTableView Selection (From: David Blanton <email@hidden>)

  • Prev by Date: Re: NSTableView Selection
  • Next by Date: Re: More - Safari Download Security Alerts
  • Previous by thread: Re: NSTableView Selection
  • Next by thread: architecture question about writing to NSUserDefaults
  • Index(es):
    • Date
    • Thread