• 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: Getting active status when launching via shell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting active status when launching via shell


  • Subject: Re: Getting active status when launching via shell
  • From: Michael Watson <email@hidden>
  • Date: Tue, 10 Apr 2007 11:34:35 -0400

You're probably attempting to launch the GUI app like this:

$ /Applications/TextEdit.app/Contents/MacOS/TextEdit

Which won't work as you expect. Do this:

$ /usr/bin/open /Applications/TextEdit.app


--


On 10 Apr, 2007, at 10:47, Jeff Sparks wrote:

I have a situation where I need to launch my app from a shell script
(essentially equivalent to launching via the command line).

The problem is that the app doesn't have active status.  The main
window is blank and greyed out; consequently, the window does not
display the image I've drawn into it until I click on the window.

I've tried a multitude of hacks with no success: sending display
messages, update messages, activate messages, recalculateKeyViewLoop,
updateWindows, setAutodisplay YES/NO, and various dirtying messages.

Is there way to get the forefront/active status?
Thanks,
-jeff




______________________________________________________________________ ______________
Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives.
http://tools.search.yahoo.com/toolbar/features/mail/
_______________________________________________


Cocoa-dev mailing list (email@hidden)

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:
40bungie.org


This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


References: 
 >Getting active status when launching via shell (From: Jeff Sparks <email@hidden>)

  • Prev by Date: Re: Getting active status when launching via shell
  • Next by Date: Re: Retrieving URL from NSImage
  • Previous by thread: Re: Getting active status when launching via shell
  • Next by thread: elegant sheet cascade handling?
  • Index(es):
    • Date
    • Thread