Mailing Lists: Apple Mailing Lists

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

Can bindings use fields in a structure?



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

This email sent to 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.