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 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]

Reply via email to