• 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
Re: NSTimer firing issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTimer firing issue


  • Subject: Re: NSTimer firing issue
  • From: matt neuburg <email@hidden>
  • Date: Fri, 23 Jul 2004 05:07:50 -0700

On Fri, 23 Jul 2004 00:41:22 -0700, Julian Pellico <email@hidden>
said:

>Well no one stepped forward on this one yet :-P
>I've figured out a partial answer - this code is getting run on a
>different thread than I was hoping. In fact, it gets called from a
>thread that's exiting and is posting NSThreadWillExitNotifications.
>The stack looks like:
>0 - [solverView playForward]
>1 - [AppController doPlayForward]
>2 - [AppController solveDidEnd:returnCode:contextInfo:]
>3 - [AppController solveALgorithmCompleted:]
>4 - _nsNotificationCenterCallBack
>......CFStorageDeleteValues, _CFNotificationCenter..........,
>__NSFinalizeThreadData
>
>So this thread doesn't even have a run loop. So now that I have an
>idea of what's going on, does anyone have a suggestion for how to get
>this code to run on my main thread?

performSelectorOnMainThread:...? m.

--
matt neuburg, phd = email@hidden, http://www.tidbits.com/matt/
pantes anthropoi tou eidenai oregontai phusei
AppleScript: the Definitive Guide! NOW SHIPPING...! (Finally.)
http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt
Subscribe to TidBITS! It's free and smart. http://www.tidbits.com/
_______________________________________________
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.


  • Prev by Date: Re: Problems with performSelector:withObject:afterDelay:
  • Next by Date: Re: NS*View and Scrolling
  • Previous by thread: Re: NSTimer firing issue
  • Next by thread: Re: NSTimer firing issue
  • Index(es):
    • Date
    • Thread