Re: Complex Source List & Selection
Re: Complex Source List & Selection
- Subject: Re: Complex Source List & Selection
- From: "I. Savant" <email@hidden>
- Date: Thu, 27 Oct 2005 19:18:53 -0400
Actually, the reason I use this code (successfully in several
shipping applications in the past, in fact) is because I've seen it
in many code examples (including many of Apple's own examples; run a
search against the developer examples for "selectRow:-1" and you'll
see plenty of it). It seemed like 'the way'.
I did just notice that, as of Tiger,
selectRow:byExtendingSelection: is deprecated. I've changed my code
to use the new selectRowIndexes:byExtendingSelection: method and it
seems to work, so thank you for having me revisit the docs. :-)
However, you have a valid point that deselectAll: is what I should be
using.
I.S.
On Oct 27, 2005, at 6:50 PM, Cameron Hayne wrote:
On 27-Oct-05, at 3:49 PM, I. Savant wrote:
[viewA selectRow:-1 byExtendingSelection:NO];
I see nothing in the documentation of NStableView that says that
passing an invalid index to 'selectRow' will deselect whatever is
selected.
Instead you should use 'deselectRow' or 'deselectAll'
--
Cameron Hayne
email@hidden
_______________________________________________
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