• 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
Re: Using NSArrayController with non-array datastructures
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using NSArrayController with non-array datastructures


  • Subject: Re: Using NSArrayController with non-array datastructures
  • From: mmalcolm crawford <email@hidden>
  • Date: Thu, 14 Apr 2005 08:42:50 -0700

SOn Apr 14, 2005, at 5:31 AM, Johnny Deadman wrote:

For reasons which will become a bit clearer after April 29, I am implementing a linked list which I want to control with an NSArrayController. The most obvious way of doing this is simply to bind the content of the array controller to a method which gets and sets the linked list as an NSArray. But I wonder if there are subtler and better ways of doing it? Is NSArrayController's only interaction with its content object via the accessor or are there methods I could implement which it would use? Obviously it would be more efficient for me to implement addObject than for the controller to add it to an array, and then me set the entire linked list using the array.

See:
<http://developer.apple.com/documentation/Cocoa/Conceptual/ KeyValueCoding/Concepts/AccessorConventions.html>
"Indexed Accessor Patterns for To-Many Properties"


mmalc


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Using NSArrayController with non-array datastructures
      • From: John Brownlow <email@hidden>
References: 
 >Using NSArrayController with non-array datastructures (From: Johnny Deadman <email@hidden>)

  • Prev by Date: Re: Cocoa from C++ (dont want to mix it)
  • Next by Date: Re: NSMenuItem - setting font size?
  • Previous by thread: Using NSArrayController with non-array datastructures
  • Next by thread: Re: Using NSArrayController with non-array datastructures
  • Index(es):
    • Date
    • Thread