• 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
Re: Gracefully shutting down a server.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Gracefully shutting down a server.


  • Subject: Re: Gracefully shutting down a server.
  • From: Chris Kane <email@hidden>
  • Date: Fri, 21 Mar 2003 11:00:35 -0800

On Wednesday, March 19, 2003, at 21:40, email@hidden wrote:
I have a server which implements the following method:

-(oneway void)shutdown

the idea is for a client to call this method which would result in the following
done on the server side:

(a) NSConnection *theConnection = [NSConnection defaultConnection];
(b) [theConnection invalidate];
(c) [theConnection removeRunLoop: [NSRunLoop currentRunLoop]];


As I understand it after I do (c) the currentRunLoop of the server should
terminate - as it only contains theConnection as input, and thus shutting down
the server.

The last part of that last sentence beginning "as it only..." is never a valid assumption.

Chris Kane
Cocoa Frameworks, Apple
_______________________________________________
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: Proper way to run runloop for DO server?
  • Next by Date: Re: Sheet over a sheet ?
  • Previous by thread: Gracefully shutting down a server.
  • Next by thread: [Newbie] How to load and display a sheet from a NIB file ?
  • Index(es):
    • Date
    • Thread