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

Re: Compiler Warning City


  • Subject: Re: Compiler Warning City
  • From: David Remahl <email@hidden>
  • Date: Thu, 24 Oct 2002 23:32:33 +0200

> Is there any way to use type "id" and not get two compiler warnings per
> usage?
>
> 1. warning: cannot find method
> 2. warning: return type for "whatever:" defaults to id
>
> There are some times where I don't want or can't easily use static
> typing, and it would be really nice if the compiler could say "Hey, its
> type 'id', that means he does not want warnings about methods (which
> would be impossible anyway) and warnings about return types (which
> would also be impossible.)" Ideally I'd like the compiler to check on
> the static stuff and not on the type "id" stuff.
>
> Is this possible?

Import the file where the selector is defined. Messages to id are checked
against all the selectors the compiler knows of, collected from all classes,
categories and protocols.

/ Rgds, David
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Compiler Warning City
      • From: G Douglas Davidson <email@hidden>
References: 
 >Compiler Warning City (From: G Douglas Davidson <email@hidden>)

  • Prev by Date: Re: Unicode and RTF?
  • Next by Date: Re: Security framework refuses to work at all
  • Previous by thread: Compiler Warning City
  • Next by thread: Re: Compiler Warning City
  • Index(es):
    • Date
    • Thread