• 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: Questions about [NSApplication run]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Questions about [NSApplication run]
      • From: Ken Thomases <email@hidden>
References: 
 >Questions about [NSApplication run] (From: "Slava Pestov" <email@hidden>)
 >Re: Questions about [NSApplication run] (From: "Michael Ash" <email@hidden>)
 >Re: Questions about [NSApplication run] (From: "Slava Pestov" <email@hidden>)
 >Re: Questions about [NSApplication run] (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: Questions about [NSApplication run]
  • Next by Date: Re: What are the limitations of Dot Syntax?
  • Previous by thread: Re: Questions about [NSApplication run]
  • Next by thread: Re: Questions about [NSApplication run]
  • Index(es):
    • Date
    • Thread