On Jul 15, 2013, at 12:44:33, Steve Mills <[email protected]> wrote:
> On Jul 15, 2013, at 11:00:14, Mike Abdullah <[email protected]> wrote: > >> NSDocument has an interesting method, >> -initForURL:withContentsOfURL:ofType:error: >> >> Can you have document opening call this instead, or follow the same pattern, >> to achieve what you want? > > That just might be the ticket I need to board this particular train to > Crazytown. It's working and is less hacky than my previous hack. Thanks. BTW, in case anybody else comes across this thread and tries the same thing, I found I also need to [self setAutosavedContentsFileURL:nil], otherwise closing the doc without saving changes will cause Cocoa to delete the original file. Doh! -- Steve Mills office: 952-818-3871 home: 952-401-6255 cell: 612-803-6157 _______________________________________________ Cocoa-dev mailing list ([email protected]) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
