Re: Storing cache data in NSDocument

2016-06-16 Thread Jens Alfke
> On Jun 16, 2016, at 4:58 PM, Rick Mann wrote: > > Yeah, that's what I'm currently doing. I guess the frequency with which files > are transferred is very low. Regenerating some of the data can take many > hours, though… Maybe you could add an Export command that copies the document with the

Re: Storing cache data in NSDocument

2016-06-16 Thread Rick Mann
> On Jun 16, 2016, at 16:57 , Jens Alfke wrote: > > >> On Jun 16, 2016, at 3:46 PM, Rick Mann wrote: >> >> My complex app generates a lot of intermediary data that's cached to speed >> up operations. Would it be reasonable to store this inside the document >> package? The idea being that th

Re: Storing cache data in NSDocument

2016-06-16 Thread Jens Alfke
> On Jun 16, 2016, at 3:46 PM, Rick Mann wrote: > > My complex app generates a lot of intermediary data that's cached to speed up > operations. Would it be reasonable to store this inside the document package? > The idea being that that way, the entire set of data can be moved around > easily

Storing cache data in NSDocument

2016-06-16 Thread Rick Mann
My complex app generates a lot of intermediary data that's cached to speed up operations. Would it be reasonable to store this inside the document package? The idea being that that way, the entire set of data can be moved around easily, without requiring the intermediate data to be rebuilt just

Re: Selected value binding in popups

2016-06-16 Thread Rick Mann
> On Jun 16, 2016, at 10:14 , Keary Suska wrote: > > >> On Jun 15, 2016, at 10:15 PM, Rick Mann wrote: >> >> I have a popup menu that's bound to an NSArrayController of AVCaptureDevice >> objects. These objects have a "localizedName" property that I use for the >> content values, and the co

Re: Can initialKey & initialValue be set via bindings?

2016-06-16 Thread Quincey Morris
On Jun 16, 2016, at 11:11 , John Chacho wrote: > > 1. Declare and synthesize two properties to hold a key NSString and a value > NSString in the controller. > 2. Bind the NSTextFields to the properties and check "Continuously Updates > Values" > 3. Bind the NSDictionaryControl "Initial Key" an

Re: Selected value binding in popups

2016-06-16 Thread Ken Thomases
On Jun 15, 2016, at 11:15 PM, Rick Mann wrote: > > I have a popup menu that's bound to an NSArrayController of AVCaptureDevice > objects. These objects have a "localizedName" property that I use for the > content values, and the content and content objects point to the > NSArrayController. >

Re: Can initialKey & initialValue be set via bindings?

2016-06-16 Thread John Chacho
I should have been more clear, the new entries are simple key-value pairs where the values are simple strings. Your reply helped me understand some of my confusion, but not before I had tried a few crazy ideas and received embarrassing exceptions like: initValue[6961:329407] [ addObserver: forKey

Re: Selected value binding in popups

2016-06-16 Thread Keary Suska
> On Jun 15, 2016, at 10:15 PM, Rick Mann wrote: > > I have a popup menu that's bound to an NSArrayController of AVCaptureDevice > objects. These objects have a "localizedName" property that I use for the > content values, and the content and content objects point to the > NSArrayController.

Re: Can initialKey & initialValue be set via bindings?

2016-06-16 Thread Quincey Morris
On Jun 15, 2016, at 21:23 , John Chacho wrote: > > If not, how can I add an arbitrary new record into the dictionary? If I understand correctly, you have to go the long way round for this scenario (which is not specific to NSDictionaryController). Instead of connecting your Add button to the s