Re: Get selectedItem (and items) in NSOutlineView
Re: Get selectedItem (and items) in NSOutlineView
- Subject: Re: Get selectedItem (and items) in NSOutlineView
- From: Alastair Houghton <email@hidden>
- Date: Sat, 28 Oct 2006 22:54:41 +0100
On Oct 28, 2006, at 5:27 PM, malcom wrote:
Hello,
I need to get the selected item of an NSOutlineView with a custom
datasource.
I've tried to use:
NSLog(@"Selected: %@",[[self itemAtRow:[self selectedRow]]
getSubject]);
But it returns the previous selected item! For example if I select A
it returns null, then if I select B it return A (the prev).
Why?
My guess is that you're calling it before the NSOutlineView has
actually changed its selection. Which event are you responding to to
log this information?
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
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