Re: CFRunLoop usage
Re: CFRunLoop usage
- Subject: Re: CFRunLoop usage
- From: "Alastair J.Houghton" <email@hidden>
- Date: Tue, 7 Oct 2003 23:16:51 +0100
On Tuesday, October 7, 2003, at 09:00 pm, Ron Anderson wrote:
Basically, I need to dispatch a window (in Cocoa) and then run a local
event loop to handle events for the window (to support a synchronous
call
without additional thread) and when the window is completed, continue
on.
Dispatching the window is simple enough. This is a modeless window.
But
my usage of CFRunLoop is where my confusion begins. Here's the code I
currently use to implement a local event loop.
Why are you using CFRunLoop rather than NSRunLoop? In any case, try
using the -nextEventUsingMask:untilDate:inMode:dequeue: method provided
by NSApplication or NSWindow; see section 3.4.1 of my FAQ, which you
can get from
http://www.alastairs-place.net/cocoa/faq.txt
Kind regards,
Alastair.
_______________________________________________
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.