• 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: how to let the NSOutlineview to display the line number?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to let the NSOutlineview to display the line number?


  • Subject: Re: how to let the NSOutlineview to display the line number?
  • From: Ashley Clark <email@hidden>
  • Date: Sat, 13 Dec 2008 01:51:30 -0600

On Dec 12, 2008, at 9:46 PM, Alex.Wang wrote:

Hi everyone. Currently I have a very huge NSOutlineview to manage my
tree-like data. So to annotate the line number on the left side of the
NSOutlineview is a very important feature for my application.
Can anyone tell me whether there is a method to do this?
Thank you very much for any reply. Best wished for you.


I'm assuming that you're already storing a line number or some kind of position index in your model. Just add another column to your outline view and have it reference that piece of your model.

If you're not storing a line number yourself and just archiving arrays I believe you could use the NSOutlineViewDataSource methods to supply the row number for that single column and still use bindings for your other columns. Just return nil for columns you don't want to handle with the data source methods.


Ashley _______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >how to let the NSOutlineview to display the line number? (From: Alex.Wang <email@hidden>)

  • Prev by Date: Re: Trying To Understand Bindings
  • Next by Date: Re: Encoding a Custom Object which has a CALayer instance Variable (newbie Question)
  • Previous by thread: how to let the NSOutlineview to display the line number?
  • Next by thread: How to handle document scaling in an NSRulerView Client?
  • Index(es):
    • Date
    • Thread