• 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
Forcing an application into the foreground
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Forcing an application into the foreground


  • Subject: Forcing an application into the foreground
  • From: Sarah Dumoulin <email@hidden>
  • Date: Wed, 02 Mar 2005 15:53:18 -0500

Hello,

    I have a coca application that I am calling through an execlp call in a
c program.  The application launches properly, however it is always in the
background (no windows are visible).  I had thought that calling
makeKeyAndOrderFront on the window that I wanted visible would fix this
problem, but doing so made no difference.  Does makeKeyAndOrderFront only
order windows within an application?  If so, is there some way of forcing
the application itself into the foreground?  I didn't see a method that
seemed appropriate under NSApplication, but I am far from a cocoa expert :)

    I don't want to run a modal window (although perhaps forcing the app
briefly into modal mode would work as a kluge?).  I would just like the user
to be able to see the running application without having to command-tab or
choose it off the finder bar.  Any suggestions or pointers would be greatly
appreciated.

Thanks,

Sarah

--
Sarah Dumoulin                                     email@hidden
Communications Research Centre                     www.crc.ca
Ottawa, ON
Phone:  613-990-5242
Fax: 613-998-9648

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Forcing an application into the foreground
      • From: John Stiles <email@hidden>
    • Re: Forcing an application into the foreground
      • From: Chilton Webb <email@hidden>
    • Re: Forcing an application into the foreground
      • From: m <email@hidden>
  • Prev by Date: Re: Example code for inspector with disclosure views
  • Next by Date: Re: Forcing an application into the foreground
  • Previous by thread: Re: OT? Looking for a contract coder...
  • Next by thread: Re: Forcing an application into the foreground
  • Index(es):
    • Date
    • Thread