• 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
Acquiring an NSConnection otherwise than by registered name?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Acquiring an NSConnection otherwise than by registered name?


  • Subject: Acquiring an NSConnection otherwise than by registered name?
  • From: Oleg Krupnov <email@hidden>
  • Date: Tue, 28 Sep 2010 08:24:58 +0300

Hi,

Here is the way to acquire connection from a server, as described in the docs:

NSConnection* theConnection = [NSConnection
connectionWithRegisteredName:@"server" host:nil];

My question is: is it possible to acquire the connection in another
way than using a name?

Why I want this: My client process has many threads, and the server
process must create a thread for each client thread. If I register all
connections by names, there's going to be many connections visible in
the system to other processes as well, and their names can clash etc.
My idea is to create a single named connection and then somehow pass
other connections through the first one.

Is this possible?

Can something like this be valid?

[pseudocode]
NSConnection* theConnection = (by ref)[rootProxy openNewConnection];

Thanks,

Oleg.
_______________________________________________

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: Acquiring an NSConnection otherwise than by registered name?
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Re: App locking up in NSView call
  • Next by Date: Re: Acquiring an NSConnection otherwise than by registered name?
  • Previous by thread: Re: NSWindow Deferred Window Display Support
  • Next by thread: Re: Acquiring an NSConnection otherwise than by registered name?
  • Index(es):
    • Date
    • Thread