need help with CFMessagePortCreateRunLoopSource crash
need help with CFMessagePortCreateRunLoopSource crash
- Subject: need help with CFMessagePortCreateRunLoopSource crash
- From: Frank Fenn <email@hidden>
- Date: Tue, 11 Mar 2003 12:37:53 -0700
Hi all,
I need help again, I simply don't get it :)
I had a daemon started during boot time and it run fine. Then I wanted
to display
a status item, and with help from some readers here, I've learned that
I must
connect to the WindowServer so I called NSApp = [NSApplication
sharedApplication];
/ [NSApp run]; and was able to display a NSStatusItem, fine.
Now when a user logs out, my process gets terminated (is there a way to
get
notified about logout?) It seems that NSApplicationShouldTerminate or
NSApllicationWillTerminate
are not called at all?!
So I wrote a little launch helper that relaunches the daemon process in
case it
terminates but this results in crashes in
CFMessagePortCreateRunLoopSource
when [NSApp sharedApplication] is called.
What can I do about this? How safely restart my daemon and still use my
status item?
Or is there even a way to prevent the process being terminated during
logout, even
if the NSStatusitem is still displayed?
And yes, I tried to find a solution in the message archive of this list
but with no real luck :)
--
regards
Frank Fenn - Bright Light Software
_______________________________________________
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.