• 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
performSelectorOnMainThread Help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

performSelectorOnMainThread Help


  • Subject: performSelectorOnMainThread Help
  • From: Sandro Noel <email@hidden>
  • Date: Mon, 06 Oct 2008 22:13:45 -0400

Greetings.

I need to gain a better understanding of performSelectorOnMainThread

I have my main window that had a delegate and the delegate spawns threads, once the threads(NSOperation) are done they return a string,
I use to do it thru a delegate but Core Data does not appreciate multiple access at the same time:)


so I looked at the synchronization mechanisms and I would like to use the performSelectorOnMainThread.

I defined a selector in my Aplication delegate like this.
- (void) updateAirDate:(ShowAirDateItem *)showAirDateItem;

and i call it from my thread like this.
[MyApp_AppDelegate performSelectorOnMainThread:@selector(updateAirDate:) withObject:airDate waitUntilDone:NO];


unfortunately, this gives me this message in the run log.
*** +[MyApp_AppDelegate updateAirDate:]: unrecognized selector sent to class


I know i'm not doing this right, but i cant figure it out... must be to simple.

could someone point me in the right direction ?

thank you !
Sandro.
_______________________________________________

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: performSelectorOnMainThread Help
      • From: Peter Sagerson <email@hidden>
  • Prev by Date: Re: NSWindowController retain counts, chapter 2
  • Next by Date: [MEET] Minnesota CocoaHeads 10/9/08
  • Previous by thread: Re: CDMA Programming
  • Next by thread: Re: performSelectorOnMainThread Help
  • Index(es):
    • Date
    • Thread