> 3. Stop your program, and set a breakpoint on the
> -performSelectorOnMainThread line. Run your program again. When this
> breakpoint is hit, before continuing your program, set a breakpoint at
> CFRunLoopSourceSignal(). Continue your program. The
> CFRunLoopSourceSignal breakpoint should be hit (directly or
> indirectly) from within the stack frame of
> -performSelectorOnMainThread; is this true?

Oh - CFRunLoopWakeUp() should also be called after
CFRunLoopSourceSignal(). Set a breakpoint on CFRunLoopWakeUp() too,
and make sure it's called from within the
-performSelectorOnMainThread: stack frame.

Furthermore, printing the first argument to both of these functions
when/if their breakpoints are hit would also useful:

i386:

    po *(id*)($ebp+8)

x86_64:

    po $rdi
_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to