Skip navigation.
 
mlNewbie Question: Running dialog loop
FROM : John Cebasek
DATE : Tue Dec 21 19:51:29 2004

Hi All:

I'm working on a replacement for the login screen for Mac OS X.  I've
been doing my debugging via a test harness and everything seems to be
working well. In my logging output I see that I'm looping around in my
dialog loop.

However when I don't start my replacement (it's a bundle actually) via
my test harness (that's a backwards way of saying, I set an entry in
the authorization file to use my replacement), the plugin hangs at:

[NSApp nextEventMatchingMask:NSAnyEventMask
        untilDate:[NSDate distantFuture]
        inMode:NSModalPanelRunLoopMode
        dequeue:YES];

So obviously when running from an application the environment is
correctly set up so that the dialog runs.  Is there an appropriate call
to initialize the runtime environment when using Cocoa in a plugin? Or
is the run loop incorrect?

Any comments are appreciated.

If more information is needed, I'll be pleased to reply.

Thanks in advance for your time


John Cebasek
<email_removed>

Related mailsAuthorDate
No related mails found.