Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6370421
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:55:41+00:00 2026-05-25T00:55:41+00:00

My app at launch time prompts the user with a template chooser, this works

  • 0

My app at launch time prompts the user with a template chooser, this works fine on Snow Leopard but on Lion the window never appears maybe due to restoration behaviour.

My app is NSDocument based and I use NSDocumentController to open the window on newDocument:(id)sender

Now on Lion no application delegate related to “untitiled” is called so I don’t understard how to make it working

I think XCode 4 is NSDocument based and it shows the Startup Panel, how it does?

Another smart XCode Startup Panel’s behaviour consists to show the panel only when no other windows are restored, again how this is implemented in Lion?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T00:55:41+00:00Added an answer on May 25, 2026 at 12:55 am

    You’re right to suspect the new restorable state behavior. The app may never be asked to create a new, empty document when relaunched/resumed. This is stated in the release notes:

    As part of the restorable windows feature, the application delegate
    may not be asked to create an Untitled window at launch in some
    circumstances. This was found to cause crashes in certain apps, so
    these apps will maintain 10.6 behavior of more often opening Untitled
    windows. When these apps are recompiled on 10.7, they will acquire the
    10.7 behavior. For maximum compatibility, do not depend on being asked
    to create an Untitled window at launch.

    They don’t mention an alternative, and the document-based app documentation does not appear to have been updated yet with restorable state information.

    As to your approach, you could change so that the template chooser is shown as a sheet on a new, empty doc window (like Pages or Instruments, for example). The document’s contents are set when the template sheet is completed. This way, each new document shows its template sheet but this only happens if the user requests a new document, rather than relying on a fresh app launch (which you’re no longer meant to do).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

At the moment when i use this, i have to re-launch the app to
I'm soon to launch a beta app and this have the option to create
After the first launch of my app i want to show the user a
I added a launch image to my iPhone app in Xcode, but after while,
Application Specific Information: com.my-app failed to launch in time Elapsed total CPU time (seconds):
my app needs to download some data (about 50k) on launch time. I'm currently
As soon as I install and launch my app for the first time, it
When I launch my app on iOS 5.1, on a device (only tested on
I want to launch an app on OSX from a script. I need to
I want to launch my app in landscape mode and I am following the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.