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

Bindings Question


  • Subject: Bindings Question
  • From: Matt <email@hidden>
  • Date: Mon, 4 Dec 2006 00:35:37 -0500

Sorry to bother everyone with yet another bindings question, but I'm confused why this won't work:

In my AppController, I have a NSMutableArray called bookmarksArray. I need to bind to that in a table view. I originally had this app working as a document-based app and all was well, but I'd like to convert it over to a "regular" app, just to get a bit of practice at it is all.

So, I have setup a ObjectController with it's outlet set to my AppController. I have the NSArrayController's value bound to the selection.arrary of the ObjectController. From there I have the Tableview's columns bound to the ArrayController's arrangedObjects.bookmarkName and url field, respectively.

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.

As far as I can tell, I have everything setup KVC compliant and I haven't left out anything. The app doesn't throw any exceptions, the table-view just never shows a thing. The same code works just fine in the NSDocument architecture and I assumed I would be able to access my array from my AppController through it instead of File's Owner and all that the other way.

Anyway, thanks for any suggestions!

Matt
http://www.macfanatic.net/blog/
_______________________________________________

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


  • Follow-Ups:
    • Re: Bindings Question
      • From: Timothy Larkin <email@hidden>
    • Re: Bindings Question
      • From: Scott Stevenson <email@hidden>
  • Prev by Date: Re: Synchronizing Thread Execution
  • Next by Date: Re: Bindings Question
  • Previous by thread: Re: Re: Synchronizing Thread Execution
  • Next by thread: Re: Bindings Question
  • Index(es):
    • Date
    • Thread