• 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 fails second time through
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: performSelectorOnMainThread fails second time through


  • Subject: Re: performSelectorOnMainThread fails second time through
  • From: Gideon King <email@hidden>
  • Date: Wed, 8 Dec 2010 18:57:17 +1000

That was the output for $rdi at the CGRunLoopWakeUp breakpoint immediately after the call to performSelectorOnMainThread...

The output of po (void*)CFRunLoopGetMain() on the line after that is http://pastie.org/1358258

When I print $rdi at the CGRunLoopWakeUp in my mini test application, I do get a full set of information similar to what is at that pastie link.


Regards

Gideon

On 08/12/2010, at 6:35 PM, Dave Keck wrote:

>> Did you edit the above quoted output at all? First, I would expect a lot more
>> information to be printed for the main run loop, and second, I would
>> expect to see NSEventTrackingRunLoopMode and NSModalPanelRunLoopMode
>> as part of the common modes set.
>
> That is, are you sure you entered:
>
>    po (void*)CFRunLoopGetMain()
>
> and not:
>
>    po (void*)CFRunLoopGetCurrent()
>
> ? To clarify:
>
>    [anObject performSelectorOnMainThread: ...]
>    NSLog(@"Breakpoint line"); // <-- set breakpoint here
>
> On my machine, if I set a breakpoint on the NSLog line and upon
> hitting it, I enter the following at the GDB prompt (copy & paste):
>
>    po (void*)CFRunLoopGetMain()
>
> I get the following output:
>
>    http://pastie.org/1358225
>
> (Much longer than the output you posted, which is what I would expect
> for the main thread's run loop.)

_______________________________________________

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 fails second time through
      • From: Dave Keck <email@hidden>
    • Re: performSelectorOnMainThread fails second time through
      • From: "email@hidden" <email@hidden>
References: 
 >performSelectorOnMainThread fails second time through (From: Gideon King <email@hidden>)
 >Re: performSelectorOnMainThread fails second time through (From: Gideon King <email@hidden>)
 >Re: performSelectorOnMainThread fails second time through (From: Charles Srstka <email@hidden>)
 >Re: performSelectorOnMainThread fails second time through (From: Gideon King <email@hidden>)
 >Re: performSelectorOnMainThread fails second time through (From: Dave Keck <email@hidden>)
 >Re: performSelectorOnMainThread fails second time through (From: Gideon King <email@hidden>)
 >Re: performSelectorOnMainThread fails second time through (From: Dave Keck <email@hidden>)
 >Re: performSelectorOnMainThread fails second time through (From: Gideon King <email@hidden>)
 >Re: performSelectorOnMainThread fails second time through (From: Dave Keck <email@hidden>)
 >Re: performSelectorOnMainThread fails second time through (From: Gideon King <email@hidden>)
 >Re: performSelectorOnMainThread fails second time through (From: Dave Keck <email@hidden>)
 >Re: performSelectorOnMainThread fails second time through (From: Dave Keck <email@hidden>)

  • Prev by Date: Re: performSelectorOnMainThread fails second time through
  • Next by Date: Re: iOS when is my app launched
  • Previous by thread: Re: performSelectorOnMainThread fails second time through
  • Next by thread: Re: performSelectorOnMainThread fails second time through
  • Index(es):
    • Date
    • Thread