Re: @selector not working with (id)anObject
Re: @selector not working with (id)anObject
- Subject: Re: @selector not working with (id)anObject
- From: Michael Ash <email@hidden>
- Date: Sat, 11 Apr 2009 23:50:49 -0400
2009/4/11 Trygve Inda <email@hidden>:
> [NSThread detachNewThreadSelector:@selector(threadMethod:) toTarget:self
> withObject:@selector(myMethod)];
This should have produced a warning like this:
warning: passing argument 3 of
‘detachNewThreadSelector:toTarget:withObject:’ from incompatible
pointer type
If it didn't, you should find out why, and fix it. If it did, then you
should pay attention to them. Warnings are the compiler's way of
saying that you probably screwed something up. You should turn on
every sane warning available (I personally use -W -Wall
-Wno-unused-parameter as my warning flags) and then ensure that all of
your code compiles without producing any warnings.
Mike
_______________________________________________
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