• 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
Help: Waiting for other thread to finish?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Help: Waiting for other thread to finish?


  • Subject: Help: Waiting for other thread to finish?
  • From: "Steven M.Palm" <email@hidden>
  • Date: Sun, 3 Aug 2003 21:10:29 -0500

I know this is a very wrong thing to do, but I'm at a loss for any other easy way to do this...

I'm working on an APE module to integrate with Mail.app specifically, so that when a user manually checks for new mail, it will pop up a window telling them if they had new mail or not.

So far so good, and I've been able to wedge into the spot when mail is checked manually, either from the menu or toolbar, and at this point I can force the activity viewer window to be present and have Mail.app do it's normal mail check. I can also get Mail.app to display a dialog for me with text of my choosing. As for finding if there is new mail, I can get the list of open mail viewers, and from there get to the underlying message list and see how many messages there are. I figure I can check the before and after count of this.

The problem is, this mail check is obviously being done in a thread. I have no way of knowing much at all about this thread... So my before and after count are always the same, as the mail checking has not happened yet.

Is there any way when I run this method to catch the thread it launches and know when it finishes? {shudder}

Thanks for any advice,

Steve

-----------------------
- Steven M. Palm
- Ham Radio Call: N9YTY
- Attempts to make thine own star shine shall lead thee into darkness.
-----------------------
_______________________________________________
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.

  • Follow-Ups:
    • Re: Help: Waiting for other thread to finish?
      • From: "Steven M.Palm" <email@hidden>
  • Prev by Date: Re: beginning C
  • Next by Date: Re: [ObjC newbie]: dereferencing pointer to incomplete type
  • Previous by thread: Re: Compiler Warnings
  • Next by thread: Re: Help: Waiting for other thread to finish?
  • Index(es):
    • Date
    • Thread