Skip navigation.
 
mlRe: Run Loop in a Cocoa application?
FROM : Cameron Hayne
DATE : Wed Nov 20 21:46:27 2002

On 20/11/02 11:56 am, "Heiko Panther" <heiko.<email_removed>> 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_removed>)
Hayne of Tintagel
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
mlRun Loop in a Cocoa application? Heiko Panther Nov 20, 17:56
mlRe: Run Loop in a Cocoa application? Cameron Hayne Nov 20, 21:46