Skip navigation.
 
mlRe: Newbie: cannot find method
FROM : Jonathan Jackel
DATE : Sat Nov 06 23:59:14 2004

The warning is correct.  You don't have a method called JDAProcess. 
Your method is called JDAProcess: (note the colon) and it takes an
argument.

The colon is very significant in Cocoa, and newbies often leave it out.
  Get used to it.

Jonathan

On Nov 6, 2004, at 2:53 PM, Jesse Abram wrote:

> Hi everyone, this is my first post. I've been learning Cocoa for
> awhile, and I've started my first app that I intend to complete to a
> polished state. Introductions aside, my problem (which probably has a
> simple answer) is as follows:
> I have a method within a controller class, from which I try to call
> another method, declared within the same header file, and defined
> within the same code, using [self theOtherMethodName];
> I get a compiler error, saying that the method cannot be found. Here
> are some code fragments with added comments:
>
> //as they appear in the header file of the class:
> - (IBAction)JDAProcess:(id)sender;
> - (IBAction)JDAWriteOut:(id)sender;
>
> //in the code, the second method tries to call the first one using:
> [self JDAProcess];
>
> Additional note, the methods are defined one after the other in the
> code, as they are in the header.
>
> So, any help with this would be appreciated, I am new to OOP in
> general. Thanks!

Related mailsAuthorDate
mlNewbie: cannot find method Jesse Abram Nov 6, 20:53
mlRe: Newbie: cannot find method Mont Rothstein Nov 6, 21:11
mlRe: Newbie: cannot find method Matt Diephouse Nov 6, 21:13
mlRe: Newbie: cannot find method Olivier Lanctôt Nov 6, 21:34
mlRe: Newbie: cannot find method Jonathan Jackel Nov 6, 23:59