Re: Line Numbers in Tables
Re: Line Numbers in Tables
- Subject: Re: Line Numbers in Tables
- From: Gordon Apple <email@hidden>
- Date: Thu, 30 Aug 2007 21:31:11 -0500
I implemented your approach for now and it works. However, isn't there
any better way to bind the column directly to the enclosing TableView?
Using your approach, I'm going through my document object just to make the
connection. What happens if I want a second instance of the (nib) view for
the same document? Will the column references automatically get updated to
the active window?
Also, this is sort of a self-synchronizing approach to the enumeration,
which is probably ok, assuming the table iterates all the rows each time.
> Yes, that's true. What I showed is actually not simple line numbers,
> but the order of the objects in the array. In my app those two happen
> to always be in sync, since sorting the table view sorts the master
> array. But if sorting a table view doesn't sort the underlying master
> array then, even if you have only one table view, this technique
> won't show the result's you're after. Apologies for the mixup and
> lack of clarity.
>
> The following however will show proper line numbers:
...........
>
_______________________________________________
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