• 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: BOOL parameter passed as nil object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: BOOL parameter passed as nil object


  • Subject: Re: BOOL parameter passed as nil object
  • From: Carl Hoefs <email@hidden>
  • Date: Fri, 22 Apr 2016 16:12:34 -0700

Yes, CFRunLoopPerformBlock: works well!
Thanks,
-Carl

> On Apr 22, 2016, at 4:09 PM, Clark Cox <email@hidden> wrote:
>
> If you really need the block to run in specific runloop modes, you can use CFRunLoopPerformBlock:
>
>
>
> CFRunLoopPerformBlock(CFRunLoopGetMain(), kCFRunLoopCommonModes, ^{
> 	//Code to be performed on main thread
> });
>
>
>> On Apr 22, 2016, at 16:00, Carl Hoefs <email@hidden> wrote:
>>
>> On Apr 22, 2016, at 2:57 PM, Quincey Morris <email@hidden> wrote:
>>>
>>> If you must use performSelector, then you can write your own glue method that takes an object parameter and invokes the API that takes the scalar parameter.
>>
>> -performSelectorOnMainThread:withObject:waitUntilDone:modes: can handle NSRunLoopCommonModes, such as to ensure an animation continues to run in all run loop common modes. Does the block+GCD+dispatch_async approach support this, or is this a case where -performSelector: should be used?
>>
>> -Carl
>>
>>
>> _______________________________________________
>>
>> 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
>


_______________________________________________

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: BOOL parameter passed as nil object
      • From: Quincey Morris <email@hidden>
References: 
 >BOOL parameter passed as nil object (From: Carl Hoefs <email@hidden>)
 >Re: BOOL parameter passed as nil object (From: Alex Zavatone <email@hidden>)
 >Re: BOOL parameter passed as nil object (From: Jens Alfke <email@hidden>)
 >Re: BOOL parameter passed as nil object (From: Greg Parker <email@hidden>)
 >Re: BOOL parameter passed as nil object (From: Alex Zavatone <email@hidden>)
 >Re: BOOL parameter passed as nil object (From: John McCall <email@hidden>)
 >Re: BOOL parameter passed as nil object (From: Carl Hoefs <email@hidden>)
 >Re: BOOL parameter passed as nil object (From: Quincey Morris <email@hidden>)
 >Re: BOOL parameter passed as nil object (From: Carl Hoefs <email@hidden>)
 >Re: BOOL parameter passed as nil object (From: Clark Cox <email@hidden>)

  • Prev by Date: Re: BOOL parameter passed as nil object
  • Next by Date: Re: BOOL parameter passed as nil object
  • Previous by thread: Re: BOOL parameter passed as nil object
  • Next by thread: Re: BOOL parameter passed as nil object
  • Index(es):
    • Date
    • Thread