Re: Compiler Warning City
Re: Compiler Warning City
- Subject: Re: Compiler Warning City
- From: G Douglas Davidson <email@hidden>
- Date: Thu, 24 Oct 2002 17:36:58 -0400
If I import the file, do I also have to link in the code with those
selectors? I should have mentioned that this is something I'm doing in
bundles. I'm using a framework for most of the stuff, but there are
some things that I really want to be loose, hence the "id".
Thanks!
On Thursday, October 24, 2002, at 05:32 PM, David Remahl wrote:
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
--
G. Douglas Davidson | CityNet, Inc.
email@hidden | Pittsburgh, PA
voice: 412.481.5406 | fax: 412.431.1315
_______________________________________________
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.