• 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
Re: CFRunLoop usage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >CFRunLoop usage (From: "Ron Anderson" <email@hidden>)

  • Prev by Date: NSTextField responder chain question...
  • Next by Date: OpenGL in a big window
  • Previous by thread: CFRunLoop usage
  • Next by thread: Re: CFRunLoop usage
  • Index(es):
    • Date
    • Thread