• 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: Complex Source List & Selection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Complex Source List & Selection (From: "I. Savant" <email@hidden>)
 >Re: Complex Source List & Selection (From: Cameron Hayne <email@hidden>)

  • Prev by Date: Re: Complex Source List & Selection
  • Next by Date: Text attachments - making an NSTextAttachment unique?
  • Previous by thread: Re: Complex Source List & Selection
  • Next by thread: view is locked?
  • Index(es):
    • Date
    • Thread