• 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
Re: Bindings problem...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bindings problem...


  • Subject: Re: Bindings problem...
  • From: Steven Kramer <email@hidden>
  • Date: Sat, 18 Dec 2004 10:32:32 +0100


Op 17-dec-04 om 16:57 heeft Eli Dylan Lorimer het volgende geschreven:

Inaugural attempt at using bindings...
I'm getting the following error on application start: addObserver:forKeyPath:options:context:] is not supported. Key path: points
I'm using the document model with the following bits:
File Owner <- ObjectController -> PointGroup (ControllerArray) -> EuclideanPoint(ControllerArray)


I'm trying to populate an excel style speadsheet (NSTableView) with 4 columns - x,y,z,id. The PointGroup array contains instances of EuclideanPoint. The table displays each instace of EuclideanPoint stored in the PointGroup.

I've got the ObjectController connected to FileOwner, PointGroup bound to ObjectController, and EuclideanPoint bound to PointGroup. Also, each column in my talbeview is bound to the appropriate dictionary.key value in the EuclideanPoint.
Any ideas what I'm missing?

You probably need only one controller. Bind everything else using keypaths. So assuming File's Owner is the document, and the document has a member or getter


NSArray* points

you should bind the tablecolumns to

[File's Owner].arrangedObjects.x


Regards,

Steven Kramer

--
email@hidden
http://sprintteam.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


  • Follow-Ups:
    • Re: Bindings problem...
      • From: mmalcolm crawford <email@hidden>
References: 
 >Bindings problem... (From: Eli Dylan Lorimer <email@hidden>)

  • Prev by Date: NSController and NSRect help
  • Next by Date: Re: NSAlert strategy advice
  • Previous by thread: Bindings problem...
  • Next by thread: Re: Bindings problem...
  • Index(es):
    • Date
    • Thread