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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com