• 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: Michael Ash <email@hidden>
  • Date: Wed, 22 Apr 2009 12:20:53 -0400

On Wed, Apr 22, 2009 at 12:13 PM, Torsten Curdt <email@hidden> wrote:
> Hey folks,
>
> Is this supposed to work or not?
>
>  - (void) setActivated:(BOOL)theStatus;
>
>  [view performSelectorOnMainThread:@selector(setActivated:)
> withObject:[NSNumber numberWithBool:YES] waitUntilDone:YES];
>
> It does not seem like it works that way.

Is it documented to work that way? No.

> Do I really have to use NSInvocation for this?

Of course not. There are always alternatives. You could, say, write a
-setActivatedWithNSNumber: method that manually unboxes the number.
You could write a higher-order message for main-thread performs.

Mike
_______________________________________________

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 primitives for withObject
      • From: Torsten Curdt <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