• 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: Preference Pane vs NSTimer/NSThread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Preference Pane vs NSTimer/NSThread


  • Subject: Re: Preference Pane vs NSTimer/NSThread
  • From: Mike Kobb <email@hidden>
  • Date: Wed, 14 Jun 2006 08:46:39 -0700

I'm still interested in hearing if anybody knows definitively why what I tried before wouldn't have worked, but in the meantime I solved the problem.

I'm now starting the thread as soon as my preference pane opens, and blocking it on an NSConditionLock. That way, when the time comes to restart my server process, I can simply unblock the already-existing thread and let it go to work. This works fine. I wrote the thread so it can be re-used if I have to restart the server more than once, and it is gracefully shut down when my panel closes.

Best to all,
--Mike

On Jun 13, 2006, at 6:39 PM, Mike Kobb wrote:

[... etc ...]
Is there a well-known reason why a timer or a thread can't be started at the point where I *have* replied with NSUnselectLater, but have not yet called replyToShouldUnselect?


_______________________________________________
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


References: 
 >Preference Pane vs NSTimer/NSThread (From: Mike Kobb <email@hidden>)

  • Prev by Date: AppleEvent handlers don't seem to work.
  • Next by Date: Re: How to implement Saving a Currency Converter document using Cocoa bindings ?
  • Previous by thread: Preference Pane vs NSTimer/NSThread
  • Next by thread: Instant Messenger Framework finding current screen name
  • Index(es):
    • Date
    • Thread