Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Implementing Table Selection Support for Custom Controller?




On Apr 25, 2007, at 10:46 AM, Colin Cornaby wrote:

I'm writing my own custom controller that does not use an NSArray for it's backing (it uses a remote array of objects). I'm basically trying to mimic an NSArrayController and am trying to figure out how to implement the the selection observing of a table view that NSArrayController does.

It's not clear what you mean by "remote array".
Can you not simply use an ordinary NSArrayController and in whatever object it is that manages the "remote array" implement suitable indexed accessor methods to "simulate" the array?
<http://developer.apple.com/documentation/Cocoa/Conceptual/KeyValueCoding/Concepts/AccessorConventions.html#//apple_ref/doc/uid/20002174-178830-BAJEDEFB >


mmalc

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Implementing Table Selection Support for Custom Controller? (From: Colin Cornaby <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.