• 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
need help with CFMessagePortCreateRunLoopSource crash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Synchronize timer with internal clock
      • From: Frank Fenn <email@hidden>
    • Re: need help with CFMessagePortCreateRunLoopSource crash
      • From: John Timmer <email@hidden>
References: 
 >Getting information about volumes (From: Dan Bernstein <cocoa-dev%email@hidden>)

  • Prev by Date: NSWorkspace getFileSystemInfoForPath:...
  • Next by Date: Re: NSFileManager miscount
  • Previous by thread: Re: Getting information about volumes
  • Next by thread: Re: need help with CFMessagePortCreateRunLoopSource crash
  • Index(es):
    • Date
    • Thread