Re: Newbie: cannot find method
Re: Newbie: cannot find method
- Subject: Re: Newbie: cannot find method
- From: Olivier Lanctôt <email@hidden>
- Date: Sat, 6 Nov 2004 15:34:45 -0500
Hello.
You might want to get a good cocoa book.
But here's your problem: you're calling [self JDAProcess]; without the
sender argument.
Since there is no sender, you should call it like that [self
JDAProcess:nil]; (nil is a null obect).
Good luck,
On Sat, 6 Nov 2004 11:53:29 -0800, Jesse Abram <email@hidden> 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!
> Jesse Abram
>
> _______________________________________________
> 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
>
>
--
Olivier
_______________________________________________
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