• 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
NSDocument -canAsynchronouslyWriteToURL::: never called
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSDocument -canAsynchronouslyWriteToURL::: never called


  • Subject: NSDocument -canAsynchronouslyWriteToURL::: never called
  • From: Markus Spoettl <email@hidden>
  • Date: Sun, 10 Jun 2012 19:21:08 +0200

Keeping the list server busy while everyone else seem to have better things to do...

Is there an magic trick to get the framework to actually call NSDocument's

- (BOOL)canAsynchronouslyWriteToURL:(NSURL *)url ofType:(NSString *)typeName forSaveOperation:(NSSaveOperationType)saveOperation

I'd like to do as the documentation suggests and put the document writing into a background tread (if you follow the little flood of NSDocument related messages you know why). Documentation says:

--------
The default implementation of this method returns NO. You are strongly encouraged to override it and make it return YES, after making sure your overrides of document writing methods can be safely invoked on a non-main thread, and making sure that unblockUserInteraction is invoked at some appropriate time during writing.
--------

There's no precondition listed, but there seems to be one as my override is never called. Why?

Regards
Markus
--
__________________________________________
Markus Spoettl
_______________________________________________

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

  • Follow-Ups:
    • Re: NSDocument -canAsynchronouslyWriteToURL::: never called
      • From: Markus Spoettl <email@hidden>
  • Prev by Date: Why does NSDocument not care about saving Viewer-role document types
  • Next by Date: Re: NSDocument -canAsynchronouslyWriteToURL::: never called
  • Previous by thread: Re: Why does NSDocument not care about saving Viewer-role document types
  • Next by thread: Re: NSDocument -canAsynchronouslyWriteToURL::: never called
  • Index(es):
    • Date
    • Thread