Re: error displaying @count via bindings
Re: error displaying @count via bindings
- Subject: Re: error displaying @count via bindings
- From: Keary Suska <email@hidden>
- Date: Mon, 02 Apr 2007 14:52:10 -0600
- Thread-topic: error displaying @count via bindings
on 4/2/07 1:00 PM, email@hidden purportedly said:
> How would this play out in code? Would I have an NSArrayController
> for each instance of my class? Or should I just put custom willChange/
> didChange notices in each of my NSMutableArray accessors and setters
> in my class?
Theoretically, you would have a single arraycontoller whose contentArray
binding is bound to the "parent" arraycontroller key "selection" using the
key path to the array in question--I am using general terms since I don't
remember exactly how you were set up. You would then bind the table column
value to the new arraycontreoller, arrangedObjects key, @count path.
If that doesn't work, then you best bet--which may be the "proper" way to do
it anyway--is to have a property in your model that maintains the array
count.
Best,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
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:
This email sent to email@hidden