• 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: Bind NSTableView to array of dictionaries in user defaults
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bind NSTableView to array of dictionaries in user defaults


  • Subject: Re: Bind NSTableView to array of dictionaries in user defaults
  • From: Keary Suska <email@hidden>
  • Date: Fri, 06 May 2016 08:58:09 -0600

> On May 5, 2016, at 7:47 PM, Jerry Krinock <email@hidden> wrote:
>
> After reading Quincey’s reply, I had concluded that this is one of those cases where Cocoa Bindings requires additional “glue”, which defeats one of the two purposes of Cocoa Bindings.  But it would be very cool if there were some configuration change that would be make this work in both directions.  It seems like we’re really close.
>
> I’m accustomed to doing this kind of code-less binding to a Core Data model, wherein it “just works”.  That’s not surprising, because of course Core Data knows the data model in great detail.  It can observe everything.

Trying out your example it looks like both you and Quincey may be correct, but on the opposite ends. The issue appears to be something with how view-based tables work, rather than NSArrayController. If you substitute with a cell-based table, it works flawlessly. The issue seems to involve binding through objectValue, so I guess you are back to needing some kind of glue code.

I was able to get it to work properly by proxy-ing the array in the app delegate, so this must specifically be an interaction between view-based tables and NSUserDefaultsController. I would file a radar, FWIW.

HTH,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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: Bind View-Based NSTableView to array of dictionaries in user defaults
      • From: Jerry Krinock <email@hidden>
References: 
 >Bind NSTableView to array of dictionaries in user defaults (From: Jerry Krinock <email@hidden>)
 >Re: Bind NSTableView to array of dictionaries in user defaults (From: Keary Suska <email@hidden>)
 >Re: Bind NSTableView to array of dictionaries in user defaults (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: Can't make an adaptive segue push
  • Next by Date: Re: Very basic need, very difficult to achieve.
  • Previous by thread: Re: Bind NSTableView to array of dictionaries in user defaults
  • Next by thread: Re: Bind View-Based NSTableView to array of dictionaries in user defaults
  • Index(es):
    • Date
    • Thread