Re: May Not Respond To
Re: May Not Respond To
- Subject: Re: May Not Respond To
- From: "Keith Ray" <email@hidden>
- Date: Mon, 26 Jun 2006 11:23:18 -0700
I don't see anything specifically wrong... here's my check-list for
such a compiler warning:
1. is the call spelled correctly?
2. is the declaration spelled correctly?
3. is the header included so the compiler has access to the
declaration for the statement in question?
4. does the header have
#ifndef header_name
#define header_name
... declarations ...
#endif
that some other header may also be declaring? [or other things
that could hide the declaration)
5. am I sending a class-level message to an instance, or an
instance-level message to a class?
6. do I need to type-cast the variable I'm sending a messager to?
On 6/26/06, Graham <email@hidden> wrote:
I have a compiler warning that I cannot work out how to eliminate:
/Users/graham/Projects/Flickr Finder/Controller.m:50: warning:
'CHUtil' may not respond to '+setKey:andSecret:'
Here is the method call on line 50 that it doesn't like:
[CHUtil setKey:@"xxxxxxxxxxxxxx" andSecret:@"yyyyyyyyyyyyyy"];
And here is the line in the imported interface file declaring the
method:
+ (void)setKey:(NSString *)key andSecret:(NSString *)secret;
The method call is working correctly at runtime. I also call other
class methods of this class in the Controller.m so I know the
interface is being pulled in correctly. The interface belongs to a
framework I have written.
Any suggestions as to how I can further track this down would be
appreciated.
I suspect it is something glaringly obvious, but I've spent too long
on it to be able to see it clearly any more :-)
Thanks
Graham
_______________________________________________
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
--
C. Keith Ray
<http://homepage.mac.com/keithray/blog/index.html>
<http://homepage.mac.com/keithray/xpminifaq.html>
<http://homepage.mac.com/keithray/resume2.html>
_______________________________________________
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