• 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: mmalcolm crawford <email@hidden>
  • Date: Sat, 18 Dec 2004 01:49:57 -0800


On Dec 18, 2004, at 1:32 AM, Steven Kramer wrote:

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


This is wrong.

You should typically bind table columns to:

	[An Array Controller].arrangedObjects.attributeName

The array controller content is usually set to the array in File's Owner -- in this example it would be [File's Owner].points.

mmalc
_______________________________________________
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: Steven Kramer <email@hidden>
References: 
 >Bindings problem... (From: Eli Dylan Lorimer <email@hidden>)
 >Re: Bindings problem... (From: Steven Kramer <email@hidden>)

  • Prev by Date: Re: Weird behavior in NSMutableDictionary
  • Next by Date: Can't use @count with bindings
  • Previous by thread: Re: Bindings problem...
  • Next by thread: Re: Bindings problem...
  • Index(es):
    • Date
    • Thread