On 27 Aug 2012, at 22:49, Kyle Sluder <k...@ksluder.com> wrote: > On Aug 27, 2012, at 8:23 AM, "Gerriet M. Denkmann" <gerr...@mdenkmann.de> > wrote: > >> >> "new" is documented as "Allocates a new instance of the receiving class, >> sends it an init message, and returns the initialized object." > > Except, you know, the part where -[NSConnection init] is documented to do > anything useful. Why not humor me and see if it works correctly if you pass a > valid send port to the designated initialiser?
//NSConnection *theConnection = [[NSConnection alloc] init]; //NSConnection *theConnection = [ NSConnection new ]; NSPort *sendPort = [ NSPort port ]; NSConnection *theConnection = [[NSConnection alloc] initWithReceivePort: nil sendPort: sendPort ]; Result: unchanged - client does not get proxy (hangs) at: NSDistantObject *proxy = [ theConnection rootProxy ]; frame #0: 0x00007fff93b2e686 libsystem_kernel.dylib`mach_msg_trap + 10 frame #1: 0x00007fff93b2dc42 libsystem_kernel.dylib`mach_msg + 70 frame #2: 0x00007fff91b0df23 CoreFoundation`__CFRunLoopServiceMachPort + 195 frame #3: 0x00007fff91b13606 CoreFoundation`__CFRunLoopRun + 1078 frame #4: 0x00007fff91b12dd2 CoreFoundation`CFRunLoopRunSpecific + 290 frame #5: 0x00007fff898096a6 Foundation`-[NSConnection sendInvocation:internal:] + 2854 frame #6: 0x00007fff91b5fda7 CoreFoundation`___forwarding___ + 775 frame #7: 0x00007fff91b5fa28 CoreFoundation`_CF_forwarding_prep_0 + 232 frame #8: 0x00007fff89807c99 Foundation`-[NSConnection rootProxy] + 71 frame #9: 0x0000000100003a77 DarkSleep`-[DistriServer prepareForUseAsClient] + 343 at DistriServer.m:131 Gerriet. _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com