• 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: Outline View Query
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Outline View Query (From: "satyam lad" <email@hidden>)

  • Prev by Date: is there a sample project for an AppleScriptable Cocoa app?
  • Next by Date: Re: Lining up NSViews in NSScrollView
  • Previous by thread: Outline View Query
  • Next by thread: NSPopUpButton item size
  • Index(es):
    • Date
    • Thread