Enforcing Editor vs. Viewer (was: Which way should my document class handle an older format?)

2017-03-05 Thread Daryle Walker
> On Mar 4, 2017, at 3:40 AM, Daryle Walker wrote: > > My document class reads in UTF-8 data for its internal format. The format has > an older version that is ASCII-based. Since the latter is a subset of the > former, my parser can handle both formats. Right now, I can’t write out in > the o

Overriding the automatic-save type

2017-03-05 Thread Daryle Walker
The NSDocument property “autosavingFileType” lets the developer indicate which one of the types the document class supports will be the one used for auto-saves. The notes at the website suggest that “init(for: withContentsOf: ofType:)” be overridden too. It punts to the TextEdit sample document

Re: Issue with addTitlebarAccessoryViewController on 10.10

2017-03-05 Thread Kyle Sluder
On Fri, Mar 3, 2017, at 08:39 AM, Mark Allan wrote: > Hi all, > > I've got an NSWindow which has an NSToolbar added programmatically. The > window does not use a shared title/toolbar. I now want to add a little > bit of text/button to the window's titlebar, so for OS X 10.6 to 10.9, > I'm doing i