On 13.03.2008, at 02:27, Nick Rogers wrote:

In my secondary thread I'm doing:
[self performSelectorOnMainThread:@selector(updateProgress) withObject:data waitUntilDone:YES];

with the error that self does not recognize the selector updateProgress. I have imported the main AppController.h into this secondary class file. still the problem.

You have two errors here:
- regardless which object implements the method, you need to send the message _to that object_ and not to self. Importing some header is not the magic bullet, Objective-C can not guess which object might want to handle the message.

- the signature in @selector() is for sure wrong when you supply an argument in "withData:". It lacks the trailing ':'.

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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