• 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
Perform selector on thread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Perform selector on thread


  • Subject: Perform selector on thread
  • From: Eddy Hatcher <email@hidden>
  • Date: Mon, 24 Mar 2008 12:19:01 +0100

Hi,

I am detaching a selector "A" on a separate thread in another class. In this selector I am calling another selector "B" in the same class using [self performSelector:@selector(B)];

Which thread will this selector "B" be run on? The main, or the one i created for "A". I want selector "B" to be run on the same thread as for "A". Hence I thought to call:

- (void)performSelector:(SEL)aSelector onThread:(NSThread *)thr withObject:(id)arg waitUntilDone:(BOOL)wait

but is that really necessary or will selector B automatically be run on the same thread as for "A" since I am calling it from inside selector "A"

Hope this is clear.

Thanks in advance


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Perform selector on thread
      • From: "Kyle Sluder" <email@hidden>
    • Re: Perform selector on thread
      • From: "John C. Randolph" <email@hidden>
  • Prev by Date: Re: NSDistributedNotification names
  • Next by Date: Re: Perform selector on thread
  • Previous by thread: Rating-style LevelIndicator not showing dots
  • Next by thread: Re: Perform selector on thread
  • Index(es):
    • Date
    • Thread