• 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: NSRunLoop question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSRunLoop question


  • Subject: Re: NSRunLoop question
  • From: John Haager <email@hidden>
  • Date: Wed, 14 Aug 2002 08:18:11 -0700

If you remove all runloop sources from a run loop, it will automatically exit.

John

On Wednesday, August 14, 2002, at 07:35 AM, Gerben Wierda wrote:

I have a foundation-using tool that opens a DO server, listens to it, gets a call for a (oneway) method, executes it and quits. This all works, except for the quits part.

When I have started the DO server, I use

[runLoop run]

where runLoop is either [NSRunLoop currentRunLoop] or [[[NSRunLoop alloc] init] addPort:[handler receivePort] forMode:NSConnectionReplyMode]. Both cases work equally good, but still I do not know how to quit the run loop.

I can of course just exit(), but that is not really nice, apart from that I might want to do something after the [runLoop run].

So, how do I kill a running NSRunLoop?

G
_______________________________________________
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.


-> John Haager <-
_______________________________________________
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.

References: 
 >NSRunLoop question (From: Gerben Wierda <email@hidden>)

  • Prev by Date: Re: Re(2): URL string escape codes
  • Next by Date: Re: NSThread with Distributed Objects
  • Previous by thread: NSRunLoop question
  • Next by thread: Re: NSRunLoop question
  • Index(es):
    • Date
    • Thread