Re: Run Loop in a Cocoa application?
Re: Run Loop in a Cocoa application?
- Subject: Re: Run Loop in a Cocoa application?
- From: Cameron Hayne <email@hidden>
- Date: Wed, 20 Nov 2002 15:46:27 -0500
On 20/11/02 11:56 am, "Heiko Panther" <email@hidden> wrote:
>
I found out that the run loop is probably not
>
running after all; a call to
>
CFShow(CFRunLoopCopyCurrentMode(CFRunLoopGetCurrent()));
>
gives an output of (NULL), according to doc that means the loop is not
>
running.
I tried putting the above CFShow statement at various places in one of my
Cocoa programs to see what is happening.
If I put it in ApplicationDidFinishLaunching, I get NULL.
If I put it in an action method (for a menu button), I get NULL.
But if I put it in a method invoked by a timer, I get
kCFRunLoopDefaultMode.
I don't claim to understand this, but maybe somebody else can explain.
--
Cameron Hayne (email@hidden)
Hayne of Tintagel
_______________________________________________
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.