Is it possible to use Cocoa's Bindings to have an editable NSTableView hooked up to an NSMutableArray? -


This bits and pieces think that I can scrape together that the answer is "no", so I ' In broader terms, I am trying to achieve what I am trying to hammer into a screw.

In my app I have a list of valid file extensions for reading, for which I am recursive through a directory. I want this to be preference, so I have received the following:

  NSMutableDictionary * dic = [NSMutableDictionary dictionary]; [Dick set object: [NSMUTABARRRARAOOJject: @ "PDF", @ "RTF", @ "TTT", NIEL] for KA: @ "valid extensions"]; [[NSUser Defaults Standard User Defaults] Register Defaults: DIC];  

And I am enabling NSTableView in an NSArrayController that is bound to the shared user default controller ...

Is it completely a user? Wrong view is the legal list of valid extensions? Did I misunderstood the role of NSUserDefaults?

The answer to the question mentioned in the headline is "yes" ... but unfortunately that 'to help you For, because the actual NSUser defaults, the variability in data structures in the backing store is not controlled by the variability of the mutated objects with the items you have registered. Default :.

In order to change the ones which are themselves structures, you have to read the old structure, change whatever you need to modify, and then change that structure to the new value Should be set as. Unfortunately, this is not conducive to binding, so you need a glue layer that turns into an array in the pref.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -