Re: CFRunLoop
Re: CFRunLoop
- Subject: Re: CFRunLoop
- From: Chris Kane <email@hidden>
- Date: Tue, 4 Sep 2001 18:35:28 -0700
I'd start by creating a new project in Project Builder, a Cocoa
application project. That gets all the complicated things in the
project set up right. Copy sources from the old project as needed.
Generally you should use the highest level API available to you; in this
case, letting Cocoa run the run loop for you instead of doing it
yourself. You'll need to get rid of the running and stopping of the
CFRunLoop, though you can still add and remove sources/timers/whatever
from it directly, and callbacks will still work.
Chris Kane
Cocoa Frameworks, Apple
On Sunday, September 2, 2001, at 10:54 AM, Robert Goldsmith wrote:
Hi all :)
I have a command line program written in a combination of
CoreFoundation code wrapped in ObjC classes for ease of coding. I now
wish to give the program a cocoa interface. First among possibly many
question I have is:
One of the classes has CoreFoundation routines that use callbacks and
the CFRunLoopRun and CFRunLoopStop calls. Will these still work
correctly under the NSApplication callback system (without the need to
start and stop CFRunLoop) or do I need to register the callbacks
differently or do I still have to use CFRunLoop ?
any ideas?
Robert
-- Please note the new email address:
email@hidden
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
References: | |
| >CFRunLoop (From: Robert Goldsmith <email@hidden>) |