• 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: newbie question on 'Cocoa Programming for Mac OS X'
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: newbie question on 'Cocoa Programming for Mac OS X'


  • Subject: Re: newbie question on 'Cocoa Programming for Mac OS X'
  • From: Scott Anguish <email@hidden>
  • Date: Tue, 12 Feb 2002 01:29:48 -0500

On Monday, February 11, 2002, at 05:41 PM, Tony Cate wrote:
When selecting a range of entries, the selectedRow is always the last row
actually selected. So if you select rows 3-4-5 the selected row is 5. If you
select 5-4-3 the selected row is 3. You can test where you are by asking if
the selected row + 1 is selected. If it is not you've got the top of the
range and the quoted source works. If it is selected, you're at the bottom
of the range and you don't need the offset.


This would assume no discontiguous selection however..
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: newbie question on 'Cocoa Programming for Mac OS X' (From: Tony Cate <email@hidden>)

  • Prev by Date: Obtaining data from finder drag onto cocoa application....
  • Next by Date: Re: NSTableColumn.identifier()
  • Previous by thread: Re: newbie question on 'Cocoa Programming for Mac OS X'
  • Next by thread: Offscreen drawing again ...
  • Index(es):
    • Date
    • Thread