Three general possibilities:

(1) aControllerObject is nil.

(2) The main run loop is not running for some reason.

(3) The main run loop is not running in one of NSRunLoopCommonModes.

Assuming you've eliminated (1), I'd look at (3).

-Jeff


On May 28, 2009, at 11:11 AM, Ben Einstein wrote:

Does anyone know of any issue that would cause performSelectorOnMainThread to not actually perform the selector but not report any kind of error? I use threads very often and have never had a problem like this, but when I call:

[aControllerObject performSelectorOnMainThread:@selector(doSomething:) withObject:anObject waitUntilDone:NO];

absolutely NOTHING happens. No log messages, doesn't pause on break points, and certainly no exceptions. But if I do this:

[aControllerObject performSelector:@selector(doSomething:) withObject:anObject];

it works every time. I'm completely baffled. Has anyone seen anything like this before?

Thanks,
Ben
_______________________________________________

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