Re: NSDocument read from file, force save to different file
Re: NSDocument read from file, force save to different file
- Subject: Re: NSDocument read from file, force save to different file
- From: Kyle Sluder <email@hidden>
- Date: Wed, 09 Oct 2013 20:37:19 -0700
On Wed, Oct 9, 2013, at 08:22 PM, Trygve Inda wrote:
> How can I do this?
NSDocument *untitledDoc = [[NSDocumentController
sharedDocumentController] makeDocumentForURL:nil
withContentsOfURL:oldDocURL ofType:myUTI error:&err];
if (untitledDoc) {
[untitledDoc makeWindowControllers];
[untitledDoc showWindows];
}
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden