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 7062043
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:32:49+00:00 2026-05-28T04:32:49+00:00

Within my Cocoa app, I call NSWorkspace’s openFile: method to open some file with

  • 0

Within my Cocoa app, I call NSWorkspace’s openFile: method to open some file with its default application.

Sometimes this works just fine, and the other application gets focus, as it should.

But alas, sometimes (the occurrence of which seems to be totally random), after the focus goes briefly to the other application, it goes quickly back to my Cocoa app. This is unwanted.

Any ideas what the causes could be?

Note: I have also tried the openFile:withApplication:andDeactivate:, passing YES to the last argument. This doesn’t work either. The strange random occurrences of focus going back to my Cocoa app persist.

  • 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-28T04:32:50+00:00Added an answer on May 28, 2026 at 4:32 am

    I’m unable to reproduce this now. Not sure what the problem was.

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

Sidebar

Related Questions

I would like to call a IBAction within a cocoa app from applescript: I
I need to parse EML files within a Cocoa app. Are there some Objective-C
I'm writing code in AppleScript to glue an Obj-C Cocoa app to some other
I want to get an App Identifier within code in Cocoa Framework Is have
When help viewer is not integrated within cocoa application it gives this message: Help
Within a Cocoa application I have a webview. When Google's personalized home page loads
I'm trying to create a Cocoa Window within an otherwise Carbon Application (it's an
Can the launchApplcation call be usedv in a non-Cocoa app? I need the equivalent
I'm writing a Cocoa application that displays the contents of an archive file in
Is it possible to submit a file from within Cocoa? What I mean is

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.