• 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: Open untitled file in Document-based app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Open untitled file in Document-based app


  • Subject: Re: Open untitled file in Document-based app
  • From: Graham Cox <email@hidden>
  • Date: Wed, 24 Oct 2012 08:58:31 +1100

On 24/10/2012, at 2:31 AM, ecir hana <email@hidden> wrote:

> I tried to return YES in both applicationShouldOpenUntitledFile: and
> applicationOpenUntitledFile: of the app delegate without luck.


If you return YES from -applicationOpenUntitledFile: the application will NOT open a new file - it has assumed that this method has done it and by returning YES that's what you're telling it. You want to either return NO or else not override this method at all.

--Graham


_______________________________________________

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: Open untitled file in Document-based app
      • From: ecir hana <email@hidden>
References: 
 >Open untitled file in Document-based app (From: ecir hana <email@hidden>)

  • Prev by Date: Re: sync drawing an ever-increasing path
  • Next by Date: Re: App Sandbox Container or Data Directory
  • Previous by thread: Open untitled file in Document-based app
  • Next by thread: Re: Open untitled file in Document-based app
  • Index(es):
    • Date
    • Thread