• 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 Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bindings Question


  • Subject: Re: Bindings Question
  • From: Timothy Larkin <email@hidden>
  • Date: Mon, 4 Dec 2006 06:51:25 -0500


On Dec 4, 2006, at 12:35 AM, Matt wrote:

When I add something to the array, the method is getting called correctly (my insertBookmarkIntoBookmarksArray: method) b/c I've got some output to the console. However, the tableview never shows a thing. I'm guessing I have something wired incorrectly, just looking for any suggestions or places to start looking.

When I run into this problem, it's usually because I have not added the new object correctly. Your table columns are bound to the array controller, and then you "add something to the array". But it's not clear exactly how you do this. You must call the array controller's "addObject:" method. It is not sufficient to do something equivalent to "[[myArrayController content] addObject:foo"; this adds an object to the array controller's content, but not in a way that triggers the binding.
--
Timothy Larkin
Abstract Tools
Caroline, NY


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Bindings Question (From: Matt <email@hidden>)

  • Prev by Date: Re: Core Data, using refreshObject:mergeChanges: to trim a portion of my object graph and regain memory...
  • Next by Date: Re: Synchronizing Thread Execution
  • Previous by thread: Re: Bindings Question
  • Next by thread: AdditionalEventParamDescriptor odoc
  • Index(es):
    • Date
    • Thread