views:

165

answers:

3

I don't know how it happened, but all of a sudden in my table view I can't make an empty selection anymore. Like a table view row always has to be selected, and it can't be deselected by clicking somewhere else in the table view. I can select a different row, but I can't make an empty selection.

In the Interface Builder attributes for the table view empty selection is enabled, so I don't know where to look next. The one major change I made was that I installed OS X Snow Leopard. I'm not sure if this issue has something to do with that.

Thanks

A: 

Try doing it programmatically with the setter method setAllowsEmptySelection:. Alternatively, try disabling empty selection in IB, saving, then enabling it, saving one more time. That might fix it.

Also make sure that something in tableView:shouldSelectRow: isn't stopping you from it (provided you've implemented this delegate method).

Cinder6
I've tried both of those, including setting it programatically and the problem still persists. I don't have any delegate methods for the table view except for a few that are used for drag and drop.
macatomy
Silly question, but you do have the outlet set, right? :) Anyways, check the array controller's attributes, if you're using one (like Peter Hosey suggested).
Cinder6
Long shot, but have you tried cleaning all targets?
Cinder6
A: 

Do you have your columns bound to an array controller? If so, check the controller's attributes.

Peter Hosey
Yeah, the array controller's "Avoid Empty Selection" attribute was checked, I unchecked it and then tried again but still doesn't work.
macatomy
A: 

I'm not allowed to say much more than this: It seems to be a problem with 10.6 specifically

macatomy
Sorry to say this but then what do you expect by asking a question about an operating system that has not been released yet, and which you are under an NDA about.
Harald Scheirich