Re: Ensuring no selection in a table view

2010-12-29 Thread John Brownie
On Thu Dec 30 2010 12:14:46 GMT+1000 (PGT) Kyle Sluder wrote: Instances of NSArrayController expose a selectedObjects property. If all of its columns are bound to the same NSArrayController, NSTableView autobinds its selection binding to the controller's selectedObjects property. This is what ma

Re: Ensuring no selection in a table view

2010-12-29 Thread Kyle Sluder
On Wed, Dec 29, 2010 at 5:11 PM, John Brownie wrote: > On Thu Dec 30 2010 09:56:18 GMT+1000 (PGT) Kyle Sluder wrote: > >> 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.

Re: Ensuring no selection in a table view

2010-12-29 Thread John Brownie
On Thu Dec 30 2010 09:56:18 GMT+1000 (PGT) Kyle Sluder wrote: 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. I don't understand this. How does the controller propagate a s

Re: Ensuring no selection in a table view

2010-12-29 Thread Kyle Sluder
On Wed, Dec 29, 2010 at 3:29 PM, John Brownie 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_P

Re: Ensuring no selection in a table view

2010-12-29 Thread John Brownie
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 tableV

Re: Ensuring no selection in a table view

2010-12-29 Thread Erik Buck
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 Out of curiosity: Why not allow selection? Users migh