Re: performSelectorOnMainThread problem
Re: performSelectorOnMainThread problem
- Subject: Re: performSelectorOnMainThread problem
- From: Erg Consultant <email@hidden>
- Date: Thu, 28 May 2009 16:53:49 -0700 (PDT)
Either your main thread doesn't implement the selector requested, or else it's an issue with the runloop never processing the request. If you have code that alters the runloop or modifies its input sources, check that code first.
Erg
________________________________
From: Ben Einstein <email@hidden>
To: email@hidden
Sent: Thursday, May 28, 2009 9:11:42 AM
Subject: performSelectorOnMainThread problem
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@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