• 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: performSelectorOnMainThread primitives for withObject
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: performSelectorOnMainThread primitives for withObject


  • Subject: Re: performSelectorOnMainThread primitives for withObject
  • From: Keith Duncan <email@hidden>
  • Date: Wed, 22 Apr 2009 17:31:38 +0100

Is this supposed to work or not?

 - (void) setActivated:(BOOL)theStatus;

 [view performSelectorOnMainThread:@selector(setActivated:)
withObject:[NSNumber numberWithBool:YES] waitUntilDone:YES];

This won't work since the boolean isn't auto-unboxed. Your method should accept an NSNumber wrapping a boolean or use another interthread messaging method such as distributed objects or an NSProxy subclass.


Keith
_______________________________________________

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


References: 
 >performSelectorOnMainThread primitives for withObject (From: Torsten Curdt <email@hidden>)

  • Prev by Date: Re: performSelectorOnMainThread primitives for withObject
  • Next by Date: RE: performSelectorOnMainThread primitives for withObject
  • Previous by thread: Re: performSelectorOnMainThread primitives for withObject
  • Next by thread: RE: performSelectorOnMainThread primitives for withObject
  • Index(es):
    • Date
    • Thread