NSTouchBar in Carbon

2016-12-11 Thread David M. Cotter
My app is mostly C++ (because it’s cross platform) with Carbon on the UI edges, and the absolute minimum required ObjectiveC++ to make it work. (please no discussion about why this is stupid / i should write a modern app etc) So I need to programmatically instantiate an NSTouchBar, somehow i

NSPersistentContainer with alternate stores

2016-12-11 Thread Daryle Walker
Just binged on WWDC 2016, and saw a new NSPersistentContainer that merges the main types. It's initialized with a model, sets up its own coordinator, and vends contexts as needed. How are the actual stores used by the coordinator set up? I want to use an in-memory store instead of some