Can bindings use fields in a structure?
Can bindings use fields in a structure?
- Subject: Can bindings use fields in a structure?
- From: George Lawrence Storm <email@hidden>
- Date: Mon, 27 Feb 2006 01:10:12 -0800
Is it possible to bind to a field in a struct?
-----
I am working with NSOpenGLView.
I am using bindings to access a variable within a structure for a
user test.
When I attempt to use the variable in the struct I get the message:
"[<kGLView 0x1828800> addObserver:<NSObjectController 0x35e160>
forKeyPath:
@"ourCameraData.fieldOfViewAngle" options:0x0 context:0x0] was sent
to an object
that is not KVC-compliant for the "ourCameraData" property."
Works fine if I define it without using the struct by way of creating
an accessor to the struct or by using a variable which duplicates the
one I want to access in my object.
Just asking to see if there is simpler approach. I am trying to avoid
creating a huge number of accessors for a one time test.
-----
George Lawrence Storm
Macintosh Applications Development
Edmonds (Seattle), Washington
E-mail: <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