• 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
Threaded NSConnection "listen"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Threaded NSConnection "listen"


  • Subject: Threaded NSConnection "listen"
  • From: "Terence G4 Mac" <email@hidden>
  • Date: Sun, 19 Jan 2003 00:46:51 +0000

Hi all,

I've got an NSConnection which exposes parts of my app to the outside world, created in the awakeFromNib, as such...

appConnection = [[NSConnection alloc] init];
[appConnection setRootObject:self];
[appConnection enableMultipleThreads];
[appConnection registerName:@"net.myapp.info"];

For the most part, everything works fine. However, if the main thread gets blocked or busy with something, the NSConnection isn't able to answer incoming requests and the external calling app/thread starts behaving very oddly.

So, what I'd like to try to figure out is whether or not it's possible to stick the NSConnection object (and possibly the things that need to be exposed) into a separate thread whose job it would be to handle these requests so that nothing is waiting on the main thread.

I realize I'd likely need a different root object, but beyond that, my knowledge of cocoa threads simply won't cut it. :)

Any thoughts or suggestions would be greatly appreciated :)

Thanks,

Terence

_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
  • Prev by Date: Re: Why does this leak memory?
  • Next by Date: Re: Warping an image with a Bezier Path
  • Previous by thread: Re: atoi()
  • Next by thread: ANN: GNUMail.app / Pantomime 1.1.0pre1
  • Index(es):
    • Date
    • Thread