• 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
sendAction:to:from: fails when application is in background
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: column of buttons in NSTableView - a solution?
  • Next by Date: No selectedObjects After Insert:
  • Previous by thread: Making Package Folders
  • Next by thread: Re: sendAction:to:from: fails when application is in background
  • Index(es):
    • Date
    • Thread