sendAction:to:from: fails when application is in background
sendAction:to:from: fails when application is in background
- Subject: sendAction:to:from: fails when application is in background
- From: Bruce Truax <email@hidden>
- Date: Fri, 03 Nov 2006 17:11:16 -0500
- Thread-topic: sendAction:to:from: fails when application is in background
I use
[NSApp sendAction:@selector(setDataBeingReceivedYES:) to:nil
from:@"ACLibDataReceived"];
To send commands from an object to the application. This has worked quite
well when processing commands from buttons in windows but now I have a
situation where I am using while processing a large file. The communication
works fine when my app is in the foreground but it fails as soon as the
window from another application is brought to the front. I tried modifying
the code so that instead of using NSApp I get a copy for myself as follows:
NSApplication * thisApp = [NSApplication sharedApplication};
I thought this would work because NSApp was changing when another app become
key but this did not work.
How can I keep my message passing working when my app is not in front?
Bruce
--
____________________________________________________________
Bruce E. Truax email: email@hidden
Optical Engineering Consultant
Diffraction Limited Design LLC
388 Wedgewood Road voice: 860-276-0450
Southington, CT 06489 fax: 860-620-9026
http://www.dld-llc.com
_____________________________________________________________
_______________________________________________
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