Re: NSDocument and NSViewControllers

2015-12-05 Thread Jerry Krinock
> On 2015 Dec 04, at 16:32, Rick Mann wrote: > > I have an NSViewController subclass and SCNView subclass. I can get at the > document from the NSViewController subclass via a rather cumbersome "let doc > = self.view.window?.windowController?.document as? ModelDocument”

Re: NSDocument and NSViewControllers

2015-12-05 Thread Quincey Morris
On Dec 5, 2015, at 12:20 , Rick Mann wrote: > > I'll probably make the document a delegate of the view controller so it can > be informed of changes to the model. This may not apply to your app, but what I usually end up doing in an app of any complexity is have

Re: NSDocument and NSViewControllers

2015-12-05 Thread Rick Mann
> On Dec 5, 2015, at 05:24 , Jerry Krinock wrote: > > >> On 2015 Dec 04, at 16:32, Rick Mann wrote: >> >> I have an NSViewController subclass and SCNView subclass. I can get at the >> document from the NSViewController subclass via a rather cumbersome

Re: NSDocument and NSViewControllers

2015-12-05 Thread Rick Mann
> On Dec 5, 2015, at 12:40 , Quincey Morris > wrote: > > On Dec 5, 2015, at 12:20 , Rick Mann wrote: >> >> I'll probably make the document a delegate of the view controller so it can >> be informed of changes to the model. > >

NSDocument and NSViewControllers

2015-12-04 Thread Rick Mann
I have a very complex "document" that I'm writing an editor for. It's a collection files, lending itself to the bundle document style. I use NSFileWrappers, and when I open one of these in my app, I get called to read the contents. I don't have to read every file all the time, it depends on

Using NSDocument with NSViewControllers

2008-10-23 Thread Paul Thomas
Before I set off down the road to frustrating deadendsville, has anyone any experience with trying to coerce AppKit's document architecture into a single window interface - i.e. using tabviews in stead of separate windows? A sneaky look at a couple of apps shows that people have usually

Re: Using NSDocument with NSViewControllers

2008-10-23 Thread Ross Carter
On Oct 23, 2008, at 3:07 AM, Paul Thomas wrote: Before I set off down the road to frustrating deadendsville, has anyone any experience with trying to coerce AppKit's document architecture into a single window interface - i.e. using tabviews in stead of separate windows? A sneaky look at