• 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: seamlessly saving to a different file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: seamlessly saving to a different file


  • Subject: Re: seamlessly saving to a different file
  • From: Steve Mills <email@hidden>
  • Date: Mon, 15 Jul 2013 13:38:44 -0500

On Jul 15, 2013, at 12:44:33, Steve Mills <email@hidden> wrote:

> On Jul 15, 2013, at 11:00:14, Mike Abdullah <email@hidden> 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@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: 
 >seamlessly saving to a different file (From: Steve Mills <email@hidden>)
 >Re: seamlessly saving to a different file (From: Mike Abdullah <email@hidden>)
 >Re: seamlessly saving to a different file (From: Steve Mills <email@hidden>)

  • Prev by Date: Curious about a property being declared in the .h and the .m file for iOS
  • Next by Date: Re: Curious about a property being declared in the .h and the .m file for iOS
  • Previous by thread: Re: seamlessly saving to a different file
  • Next by thread: Converting RTFD to Word with embedded images
  • Index(es):
    • Date
    • Thread