Re: how to let the NSOutlineview to display the line number?
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