Re: newbie question on 'Cocoa Programming for Mac OS X'
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.