• 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: Get selectedItem (and items) in NSOutlineView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Get selectedItem (and items) in NSOutlineView


  • Subject: Re: Get selectedItem (and items) in NSOutlineView
  • From: Dominik Pich <email@hidden>
  • Date: Sat, 28 Oct 2006 18:59:46 +0200

I'd guess selectedRow is 0-based while itemAtRow isnt.

Am Oct 28, 2006 um 6:27 PM schrieb malcom:

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?
_______________________________________________
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
  • Follow-Ups:
    • Re: Re: Get selectedItem (and items) in NSOutlineView
      • From: malcom <email@hidden>
References: 
 >Get selectedItem (and items) in NSOutlineView (From: malcom <email@hidden>)

  • Prev by Date: Get selectedItem (and items) in NSOutlineView
  • Next by Date: Re: Re: Get selectedItem (and items) in NSOutlineView
  • Previous by thread: Get selectedItem (and items) in NSOutlineView
  • Next by thread: Re: Re: Get selectedItem (and items) in NSOutlineView
  • Index(es):
    • Date
    • Thread