• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Can bindings use fields in a structure?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Can bindings use fields in a structure?
      • From: Jonathon Mah <email@hidden>
  • Prev by Date: Re: Error with proxy objects and to-many relationships with Core Data
  • Next by Date: Re:Objective-C programming
  • Previous by thread: IB Palette loading problem
  • Next by thread: Re: Can bindings use fields in a structure?
  • Index(es):
    • Date
    • Thread