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

  • SEARCH
  • Home
  • 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 7036411
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:25:15+00:00 2026-05-28T01:25:15+00:00

When I launch my app in OSX Lion, it always runs on the bottom

  • 0

When I launch my app in OSX Lion, it always runs on the bottom layer, behind other apps.

I suspect the issue is related to the new feature in Lion about restoring the last configuration of the main window. Indeed, if I delete the app folder from the Library/Saved Application State folder, and I run again my app, the main window is displayed on top.

Also, if I click on the dock bar, the apps come in front, but it never starts in front of other apps.

I’ve tried several things such as:

  • clean the AutoSave field in the xib file
  • setLevel:NSNormalWindowLevel (if I use NSSubmenuWindowLevel, it stays always in front even when it looses focus)
  • [window makeKeyAndOrderFront:self]

but none had worked.

I don’t know if this matters, but my base xib file in the app preferences is “mainMenu.xib” and not “document.xib”. COuld be that the mainWindow is considered the main application window and therefore not shown on top ?

In any case I think there is something wrong in the code, because the app should show up on top of the window when it is launched by default.

Thanks

  • 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-28T01:25:16+00:00Added an answer on May 28, 2026 at 1:25 am

    I’ve solved by disabling the Resume with

    //disable Lion resume
    if([[NSUserDefaults standardUserDefaults] objectForKey: @"ApplePersistenceIgnoreState"] == nil)
        [[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"ApplePersistenceIgnoreState"];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to launch an app on OSX from a script. I need to
Possible Duplicate: launch facebook app from other app I'm looking to see if it
Launch app from homescreen can't get remote push payload? But launch from Notification Center
So my app launch when it starts a FragmentActivity TestFActivity . That FragmentActivity contains
I need to launch an app I've made just after login, before anything else
How do I launch my app only for iPhone/iPod, not for iPad on the
I want to launch my app in landscape mode and I am following the
When I launch my app on iOS 5.1, on a device (only tested on
What I am desperately trying to achieve is to launch my app when the
At the moment when i use this, i have to re-launch the app to

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.