0
   

kill or stop a NSthread objective C

 
 
Reply Wed 10 Apr, 2013 03:35 am
hi i am using the below code to run a process.. but i want my process to stop when i press cancel button..

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

i tried with

"[NSThread cancelPreviousPerformRequestsWithTarget:self selector:@selector(newMethodForParsing) object:nil];"

but its not working..
wat can i do?
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Question • Score: 0 • Views: 2,554 • Replies: 0
No top replies

 
 

 
  1. Forums
  2. » kill or stop a NSthread objective C
Copyright © 2024 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.03 seconds on 04/25/2024 at 04:30:06