• 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: performSelectorOnMainThread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: performSelectorOnMainThread


  • Subject: Re: performSelectorOnMainThread
  • From: "Sean McBride" <email@hidden>
  • Date: Thu, 20 Jul 2006 11:44:08 -0400
  • Organization: Rogue Research

On 2006-07-20 07:43, James Bucanek said:

>You're probably running into the subtleties of Cocoa message naming.
>This one trips me up at least once a week:
>
>    @selector(myMethod) is the selector for - (void)myMethod;
>
>    @selector(myMethod:) is the selector for - (void)myMethod:(id)param;
>
>Note the colon. It's important.

This trips a lot of people up, but gcc can warn when you use an
undeclared selector.  Sadly, Xcode provides no GUI for this warning, but
you can pass the "-Wundeclared-selector" flag to gcc, and then you'll get:

warning: undeclared selector 'myMethod'

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >performSelectorOnMainThread (From: Eric Blanpied <email@hidden>)
 >Re: performSelectorOnMainThread (From: James Bucanek <email@hidden>)

  • Prev by Date: Re: Web Browser Problem
  • Next by Date: webview and all widget access
  • Previous by thread: Re: performSelectorOnMainThread
  • Next by thread: Re: performSelectorOnMainThread
  • Index(es):
    • Date
    • Thread