Re: performSelectorOnMainThread fails second time through
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