Re: Preference Pane vs NSTimer/NSThread
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