Re: Getting active status when launching via shell
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