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

Re: NSThread Question


  • Subject: Re: NSThread Question
  • From: Lorenzo Puleo <email@hidden>
  • Date: Wed, 24 Apr 2002 00:18:19 +0200

on 4/23/02 8:29 PM, Erik M. Buck at email@hidden wrote:

> [self performSelector:@selector(executeLoop:) withObject:[NSNumber
> numberWithInt:0]
> afterDelay:0.0];
Hi,
thank you for your help. "performSelector" works fine with simple tasks. I
have learned a new thing. For complex tasks someone else suggested me to use

[NSThread detachNewThreadSelector:@selector(processTheItems) toTarget:self
withObject:nil];

This way you don't have to call "performSelector" on each single task;
simple verify the variable "isRunning" is "NO".
See my next note in this mailing list.

Thanks again
--
Lorenzo Puleo
mailto:email@hidden
_______________________________________________
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: 
 >Re: NSThread Question (From: "Erik M. Buck" <email@hidden>)

  • Prev by Date: Re: NSThread Question
  • Next by Date: Re: Lua (Was: Re: Compile times)
  • Previous by thread: Re: NSThread Question
  • Next by thread: Re: NSThread Question
  • Index(es):
    • Date
    • Thread