• 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: Help with NSOutlineView selection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with NSOutlineView selection


  • Subject: Re: Help with NSOutlineView selection
  • From: Scott Mitchell <email@hidden>
  • Date: Thu, 13 Apr 2006 11:38:57 -0600

Never mind I think I figured out what you where saying. Thanks. I was just being very slow today.




Thanks, Scott Mitchell Senior Macintosh Software Engineer Excelsior Software http://www.excelsiorsoftware.com


On Apr 13, 2006, at 10:38 AM, Ondra Cada wrote:

Scott,

On 13.4.2006, at 17:54, Scott Mitchell wrote:

I have been trying to figure out how to get the row selection in an NSOutlineView? I can't use selectedRow to get this because it returns the index of the selected row. But that won't work for a NSOUtlienView, will it? What I need to be able to do of course is get what item is selected so I know what info the user chose, and also need to enable/disable a button depending on the data the user chose. Can anyone help me, I have been searching the list and looking at the doc's but can't seem to find it.

If you use your own data source, just translate rows for items (which you are bound to know) by itemAtRow:.


If you bind through an NSTreeController, use its methods (namely, selectedObjects in code, selection for bindings).
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc





_______________________________________________ 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: 
 >Help with NSOutlineView selection (From: Scott Mitchell <email@hidden>)
 >Re: Help with NSOutlineView selection (From: Ondra Cada <email@hidden>)

  • Prev by Date: Re: Help with NSOutlineView selection
  • Next by Date: Re: Is this program open?
  • Previous by thread: Re: Help with NSOutlineView selection
  • Next by thread: Table data quick key access
  • Index(es):
    • Date
    • Thread