FROM : John Brownlow
DATE : Thu Apr 14 21:24:15 2005
awesome! thank you!
On Apr 14, 2005, at 11:42 AM, mmalcolm crawford 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"
>
--
John Brownlow
Deep Fried Films, Inc
http://www.johnbrownlow.com
http://www.pinkheadedbug.com
DATE : Thu Apr 14 21:24:15 2005
awesome! thank you!
On Apr 14, 2005, at 11:42 AM, mmalcolm crawford 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"
>
--
John Brownlow
Deep Fried Films, Inc
http://www.johnbrownlow.com
http://www.pinkheadedbug.com
| Related mails | Author | Date |
|---|---|---|
| Johnny Deadman | Apr 14, 14:31 | |
| mmalcolm crawford | Apr 14, 17:42 | |
| John Brownlow | Apr 14, 21:24 |






Cocoa mail archive

