On Oct 11, 2013, at 02:13 , Rick Mann <rm...@latencyzero.com> wrote:
> I've switched to using the asynchronous > -openDocumentWithContentsOfURL:display:completionHandler:, and now I have a > problem. My app requires that one type of document (which provides a library > of elements added to the "real" documents) be open before the untitled > document gets created. This worked fine before, when the library doc was > opened synchronously, but now it doesn't. > > I could override -makeUntitledDocumentOfType:error: to check for the library > doc first, set a flag if it's not ready, and have the library doc open > operation check that flag and create a new document. > > But is there a better way? I think I may have answered this. It is to return false from -applicationShouldOpenUntitledFile:, and then create the new untitled document after my library doc has been opened. -- Rick
signature.asc
Description: Message signed with OpenPGP using GPGMail
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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 arch...@mail-archive.com