• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: @selector not working with (id)anObject
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >@selector not working with (id)anObject (From: Trygve Inda <email@hidden>)

  • Prev by Date: Re: NSLog with %f and comparisons using ==
  • Next by Date: NSString camel case
  • Previous by thread: Re: @selector not working with (id)anObject
  • Next by thread: Re: @selector not working with (id)anObject
  • Index(es):
    • Date
    • Thread