Re: Distributed Objects
Re: Distributed Objects
- Subject: Re: Distributed Objects
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Mon, 27 Aug 2012 21:54:44 +0700
On 27 Aug 2012, at 21:47, Kyle Sluder <email@hidden> wrote:
> On Mon, Aug 27, 2012, at 04:53 AM, Gerriet M. Denkmann wrote:
>> The documentation says:
>>
>> " In the main thread of an application based on the Application Kit, the
>> run loop is already running, so there is nothing more to do to vend an
>> object. In a secondary thread or an application that does not use
>> theNSApplication object, you have to start the run loop explicitly to
>> capture incoming connection requests and messages. This is usually as
>> simple as getting the current thread’s NSRunLoop instance and sending it
>> a run message".
>>
>> So the line [[NSRunLoop currentRunLoop] run] should not be necessary.
>
> More sanity checking: are you sure this code is executing on the main
> thread?
The code is inside:
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
So I guess the answer is "yes".
Gerriet.
_______________________________________________
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