[SOLVED] Binding nested objects
[SOLVED] Binding nested objects
- Subject: [SOLVED] Binding nested objects
- From: Bruce Truax <email@hidden>
- Date: Tue, 19 Oct 2004 18:06:31 -0400
Silly me. I forgot to allocate the thPikup object. Once I did that it
worked great.
Bruce
On 10/19/04 5:23 PM, "Bruce Truax" <email@hidden> eloquently wrote:
>
You are correct, that is exactly what I did. So I tried what you suggested
>
nameing my new controller ThPikupController and the error went away. I then
>
bound my UI display boxes to selection.surface[ThPikupController],
>
selection.scale[ThPikupController] and selection.offset[ThPikupController].
>
Now my UI boxes show the message "No Selection".
>
>
I guess this is progress.
>
>
Bruce
>
>
>
>
>
> On Oct 19, 2004, at 1:59 PM, Bruce Truax wrote:
>
>
>
>> I have an NSObjectController bound to the ACLensDataObject and then an
>
>> array
>
>> controller bound to selection.surfaceArray. I tried binding another
>
>> NSObjectController to selection.thPikup but I get the following error
>
>> message:
>
>>
>
>> 2004-10-19 16:29:21.458 AccosX[11650] [<ACLensDataObject 0x54392e0>
>
>> valueForUndefinedKey:]: this class is not key value coding-compliant
>
>> for the
>
>> key thPikup.
>
>
>
> When you say to bound to "selection.thPikup", which controller were you
>
> binding to?
>
>
>
>
>
> The NSArrayController should be bound to the first NSObjectController
>
> (ACLens...).
>
>
>
> And the *second* NSObjectController should be bound to the
>
> NSArrayController using:
>
>
>
> "selection.thPikup"
>
>
>
> Based on the error message, it looks like you tried to bind the second
>
> NSObjectController to the first NSObjectCotnroller.
>
>
>
>
>
> - Scott
>
>
>
>
>
>
>
> --
>
> http://treehouseideas.com/
>
> http://theobroma.treehouseideas.com/ [blog]
>
>
>
> _______________________________________________
>
> 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
>
>
_______________________________________________
>
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
--
____________________________________________________________
Bruce E. Truax email: email@hidden
Optical Engineering Consultant
Diffraction Limited Design LLC
388 Wedgewood Road voice: 860-276-0450
Southington, CT 06489 fax: 860-620-9026
http://www.dld-llc.com
_____________________________________________________________
_______________________________________________
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