Re: Outline View Query
Re: Outline View Query
- Subject: Re: Outline View Query
- From: daniel <email@hidden>
- Date: Mon, 21 Feb 2005 09:16:33 -0800
It is a little tricky to find in the documentation if you don't know what you're looking for. You want to use the "itemAtRow" method of NSOutlineView. For example (assuming an outline view with only one item selectable at a time):
MyObject* selectedObject = nil;
if ([oMyOutlineView selectedRow] != -1)
{
selectedObject = [oMyOutlineView itemAtRow:[oMyOutlineView selectedRow]];
}
return selectedObject;
Daniel
On Feb 21, 2005, at 2:21 AM, satyam lad wrote:
Hello EveryOne,
I am facing a lot of problem while building a application witn NSOutlineView Object. Through Interface Builder i selected the NSOutlineView Object, and through code i control the datasource. I have made a object of NSString and attached as child. But in RUN MODE i am unable to detect (back in code) which child i have selected in the outline view. Please give a help on the following, if a sample code is available it would be highly appreciated.
Regards,
Satyam.
_________________________________________________________________
Try the all-new MSN Search! Find exactly what you want. http://search.msn.co.in Get more value for your time.
_______________________________________________
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
_______________________________________________
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