curious behavior of Conditionally Sets Enabled in NSTableView
curious behavior of Conditionally Sets Enabled in NSTableView
- Subject: curious behavior of Conditionally Sets Enabled in NSTableView
- From: Matt Neuburg <email@hidden>
- Date: Fri, 03 Mar 2006 12:01:07 -0800
- Thread-topic: curious behavior of Conditionally Sets Enabled in NSTableView
I have an NSTableView whose columns are bound through the arrangedObjects of
an NSArrayController. The table view allows multiple selection.
If I select a row of the table view, fine.
If I then command-click another row of the table view, both rows are
selected, but the table view is then disabled (it loses focus and the
selected rows turn grey). This surprised me, and it wasn't what I wanted, so
I set out to investigate further.
If I then command-click *another* row of the table view, all three rows are
selected and the table view is enabled.
If I then command-click one of the three selected rows, two rows are
selected and the table view is enabled. So it is possible to select exactly
two rows, but only in this roundabout way (enable three, then enable two).
This behavior goes away if I uncheck "Conditionally Sets Enabled". Therefore
I conclude that it is *due* to "Conditionally Sets Enabled". But what on
earth could be the logic of such behavior? What does "Conditionally Sets
Enabled" imagine it is doing? What "condition" could it be thinking of here?
It seems to me that this behavior is just plain buggy; it serves no useful
purpose that I can envision. Should I file a bug, or there some wonderful
thing going on here that I'm just not appreciating? m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden