• 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: Ensuring no selection in a table view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ensuring no selection in a table view


  • Subject: Re: Ensuring no selection in a table view
  • From: Kyle Sluder <email@hidden>
  • Date: Wed, 29 Dec 2010 15:56:18 -0800

On Wed, Dec 29, 2010 at 3:29 PM, John Brownie <email@hidden> wrote:
> Erik Buck wrote:
>>
>> Enabling empty selection in IB should do the trick.  You can also control
>> selection programmatically with the delegate.
>>
>> http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/NSTableViewDelegate_Protocol/Reference/Reference.html
>
> That looked promising, but tableView:shouldSelectRow: does not get called
> when the window appears after being created or hidden. Nor does it get
> called if I click the selected row. It does get called if I click in an
> empty row and then back in a row with data.

Is it propagating the selection from the controller? IOW, just because
you have set avoidsEmptySelection=NO doesn't mean the controller will
*prefer* an empty selection.

--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

  • Follow-Ups:
    • Re: Ensuring no selection in a table view
      • From: John Brownie <email@hidden>
References: 
 >Ensuring no selection in a table view (From: John Brownie <email@hidden>)
 >Re: Ensuring no selection in a table view (From: Erik Buck <email@hidden>)
 >Re: Ensuring no selection in a table view (From: John Brownie <email@hidden>)

  • Prev by Date: Re: Ensuring no selection in a table view
  • Next by Date: Re: Ensuring no selection in a table view
  • Previous by thread: Re: Ensuring no selection in a table view
  • Next by thread: Re: Ensuring no selection in a table view
  • Index(es):
    • Date
    • Thread