Letting an instance know its own index within a container array - how to?
Letting an instance know its own index within a container array - how to?
- Subject: Letting an instance know its own index within a container array - how to?
- From: Peter <email@hidden>
- Date: Tue, 07 Jan 2014 17:09:37 +0100
Rethinking the problem of how to display row numbers in a view based NSTableView from a different perspective:
I could use bindings if I could manage to make my row entities know their index within the table view content array.
As a solution I could device a delegate for my entities and make the entity order the delegate to send a query to the array controller about its own index in arranged objects.
Does this seem like a sane approach?
Thanks,
Peter
_______________________________________________
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