• 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: NSRunLoop issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSRunLoop issue


  • Subject: Re: NSRunLoop issue
  • From: Andreas Grosam <email@hidden>
  • Date: Fri, 18 Sep 2009 12:13:17 +0200


On Sep 17, 2009, at 7:01 PM, Jean-Daniel Dupas wrote:


Le 17 sept. 2009 à 18:28, Jerry Krinock a écrit :


On 2009 Sep 17, at 07:48, Jean-Daniel Dupas wrote:

Add a dummy source (mach port or timer with an insanely high fire date) before running your loop. So you re sure there is at least one source.

Please show a few lines of code adding a "dummy" mach port. One time I tried to do that and kept going around in circles in the documentation.



[[NSRunLoop currentRunLoop] addPort:[NSMachPort port] forMode:NSDefaultRunLoopMode];


Thank you Jean-Daniel for the tip.

I'm using a dummy timer currently - but the mach port approach looks better.




Thanks!

Jerry Krinock


-- Jean-Daniel



Regards
Andreas

_______________________________________________

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


References: 
 >NSRunLoop issue (From: Andreas Grosam <email@hidden>)
 >Re: NSRunLoop issue (From: Jean-Daniel Dupas <email@hidden>)
 >Re: NSRunLoop issue (From: Jerry Krinock <email@hidden>)
 >Re: NSRunLoop issue (From: Jean-Daniel Dupas <email@hidden>)

  • Prev by Date: Re: Handling mouse events in NSCell's?
  • Next by Date: Re: Building a 64-bit Preferences Pane
  • Previous by thread: Re: NSRunLoop issue
  • Next by thread: Core Data: strange keypath problem
  • Index(es):
    • Date
    • Thread