Re: Foundation Tool and NSDistributedNotificationCenter
Re: Foundation Tool and NSDistributedNotificationCenter
- Subject: Re: Foundation Tool and NSDistributedNotificationCenter
- From: Jerry Krinock <email@hidden>
- Date: Fri, 23 Oct 2009 09:09:27 -0700
On 2009 Oct 23, at 08:37, Zephyroth Akash wrote:
[[NSRunLoop currentRunLoop] run];
I believe you need to read All About Run Loops...
http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/Multithreading/RunLoopManagement/RunLoopManagement.html#/
/apple_ref/doc/uid/10000057i-CH16-SW20
Ultimately, you'll end up with this loop which, the first time I saw
it, I thought was the strangest-looking piece of code I had ever seen...
while (!done && [[NSRunLoop currentRunLoop] runMode:NSDefaultRunLoopMode
beforeDate:[NSDate
distantFuture]]) {} ;
_______________________________________________
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