Re: Becomeing foreground process [was XRe: Problem receiving key events in CLI created window]
Re: Becomeing foreground process [was XRe: Problem receiving key events in CLI created window]
- Subject: Re: Becomeing foreground process [was XRe: Problem receiving key events in CLI created window]
- From: Dietmar Planitzer <email@hidden>
- Date: Sun, 20 Jul 2003 23:46:24 +0200
On Sunday, July 20, 2003, at 06:03 PM, Pete French wrote:
command-line programs. Second, did you make the window into the first
responder? Can it accept that status?
I just started investigating this and in doing so I think I have come
across
the answer - my app never becomes the foreground process, even when the
window becomes the key window. This is actually in the docs, but what
it *doesnt* explain is how to actually become the foreground process.
Does anyone know what governs whether a process is allowed to be
considered
as the 'foreground process' or not ? Would giving the program a main
menu help ? I've never needed to do this before, but am up for anything
which might help...
Just a note:
Is your executable packaged or just a "simple" binary ? An app must be
packaged or it won't be able to become a foreground process if you
start it from the CLI. Adding a main menu may also help.
Regards,
Dietmar Planitzer
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.