• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSDocument read from file, force save to different file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSDocument read from file, force save to different file (From: Trygve Inda <email@hidden>)

  • Prev by Date: NSDocument read from file, force save to different file
  • Next by Date: Crash in datasource method when closing document
  • Previous by thread: NSDocument read from file, force save to different file
  • Next by thread: Crash in datasource method when closing document
  • Index(es):
    • Date
    • Thread