Re: Questions about [NSApplication run]
Re: Questions about [NSApplication run]
- Subject: Re: Questions about [NSApplication run]
- From: "Slava Pestov" <email@hidden>
- Date: Fri, 5 Dec 2008 22:53:06 -0600
On Fri, Dec 5, 2008 at 10:41 PM, Ken Thomases <email@hidden> wrote:
> If you can require Leopard, take a look at CFFileDescriptor. Prior to
> Leopard, you can use CFSocket with any file descriptor, so long as you don't
> use the socket-specific parts of that interface.
I do indeed require Leopard for other reasons (my Cocoa bridge uses
the Objective C 2.0 runtime API) so that's not an issue. This should
be an easy fix, since my non-blocking I/O code has pluggable backends;
I can use the Core Foundation run loop on OS X and select() on other
Unices. Looks I can solve the Exposé problem I mentioned in my
original e-mail, as well as the pesky 1-3% CPU usage when idle, and
get rid of some hackish code, in one fell swoop.
Thanks!
Slava
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden