• 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
Letting an instance know its own index within a container array - how to?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Letting an instance know its own index within a container array - how to?
      • From: Keary Suska <email@hidden>
  • Prev by Date: Set up an editable view based NSTableView programmatically - how to?
  • Next by Date: UINavigationBar.tintColor life on own?
  • Previous by thread: Re: Set up an editable view based NSTableView programmatically - how to?
  • Next by thread: Re: Letting an instance know its own index within a container array - how to?
  • Index(es):
    • Date
    • Thread