Re: Re: New bindings for NSArrayController
Re: Re: New bindings for NSArrayController
- Subject: Re: Re: New bindings for NSArrayController
- From: "Jim Thomason" <email@hidden>
- Date: Thu, 16 Nov 2006 14:43:48 -0600
There isn't sufficient information provided to offer a decent solution but I
can recommend a couple approaches:
1 If you have a model object that "owns" the array that is the content of
the account detail arraycontroller, firstObject could be a property of the
model that you bind to through the account arraycontroller, presuming that
the array content is dependent on that controller's selection, as in a
master-detail interface. You could either set up a dependent key trigger on
the content array for use the setFirstObject: accessor.
That is exactly what I needed. I got rid of firstObject in
NSArrayController and instead added in firstLineItem to my managed
account object. I got hung up a little bit initially, since it's
coredata and I only (AFAIK) have access to a mutable set, but relaying
through the set's allObjects list was just the ticket.
So I seem to be in business now.
Thanks,
-Jim....
_______________________________________________
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