Re: Argh never-ending troubles with bindings

2017-02-09 Thread Gordon Apple
If you are trying to bind to an arrayController via representedObject, I've never had any luck with that. I've always used representedObject to get a local reference to the arrayController and bind to that. On 2/8/17 8:26 PM, "cocoa-dev-requ...@lists.apple.com" wrote: > Note that I've also trie

Re: Argh never-ending troubles with bindings

2017-02-08 Thread Rick Mann
> On Feb 8, 2017, at 18:26 , Ken Thomases wrote: > > On Feb 8, 2017, at 5:44 PM, Rick Mann wrote: >> >> 2017-02-08 15:39:41.178728 PromotionalChargeManager[51621:17330300] >> [General] Cannot perform operation without a managed object context >> 2017-02-08 15:39:41.181165 PromotionalChargeMan

Re: Argh never-ending troubles with bindings

2017-02-08 Thread Ken Thomases
On Feb 8, 2017, at 5:44 PM, Rick Mann wrote: > > 2017-02-08 15:39:41.178728 PromotionalChargeManager[51621:17330300] [General] > Cannot perform operation without a managed object context > 2017-02-08 15:39:41.181165 PromotionalChargeManager[51621:17330300] [General] > ( > 0 CoreFoundati

Re: Argh never-ending troubles with bindings

2017-02-08 Thread Rick Mann
> On Feb 8, 2017, at 17:41 , Quincey Morris > wrote: > > On Feb 8, 2017, at 17:17 , Rick Mann wrote: >> >> it's the Managed Object Context that's bound to >> "self.representedObject.managedObjectContext". > > “self.” is unnecessary. AFAIK it’s just voodoo arising from attempts to work > ar

Re: Argh never-ending troubles with bindings

2017-02-08 Thread Quincey Morris
On Feb 8, 2017, at 17:17 , Rick Mann wrote: > > it's the Managed Object Context that's bound to > "self.representedObject.managedObjectContext". “self.” is unnecessary. AFAIK it’s just voodoo arising from attempts to work around some bug or confusion several years ago. The other two keys you

Re: Argh never-ending troubles with bindings

2017-02-08 Thread Rick Mann
> On Feb 8, 2017, at 17:08 , Quincey Morris > wrote: > > On Feb 8, 2017, at 16:58 , Rick Mann wrote: >> >>> On Feb 8, 2017, at 16:50 , Quincey Morris >>> wrote: >>> >>> On Feb 8, 2017, at 15:44 , Rick Mann wrote: I bind an Array Controller in the View Controller scene to

Re: Argh never-ending troubles with bindings

2017-02-08 Thread Quincey Morris
On Feb 8, 2017, at 16:58 , Rick Mann wrote: > >> On Feb 8, 2017, at 16:50 , Quincey Morris >> > > wrote: >> >> On Feb 8, 2017, at 15:44 , Rick Mann > > wrote: >>> >>> I bind an Array Controller in the View Controller sce

Re: Argh never-ending troubles with bindings

2017-02-08 Thread Rick Mann
> On Feb 8, 2017, at 16:50 , Quincey Morris > wrote: > > On Feb 8, 2017, at 15:44 , Rick Mann wrote: >> >> I bind an Array Controller in the View Controller scene to >> ViewController.self.representedObject.managedObjectContext. > > Using what binding key? self.representedObject.managedObj

Re: Argh never-ending troubles with bindings

2017-02-08 Thread Quincey Morris
On Feb 8, 2017, at 15:44 , Rick Mann wrote: > > I bind an Array Controller in the View Controller scene to > ViewController.self.representedObject.managedObjectContext. Using what binding key? > Note that I've also tried setting the Array Controller's content binding to > gobbledegook Instea

Argh never-ending troubles with bindings

2017-02-08 Thread Rick Mann
I have the simplest of Document-based macOS apps created in Xcode 8.2.3. In the Document.makeWindowControllers method, I set my ViewController's representedObject to the document. override func makeWindowControllers() { let storyboard = NSStoryboard(name: "Main", bundle: nil) let windowC