🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.next.programmer
1 messages
1 total messages Started by A. Jetha Sat, 01 Aug 1992 19:11
class problem
#394
Author: A. Jetha
Date: Sat, 01 Aug 1992 19:11
47 lines
1640 bytes
THANKS to everybody that sent me messages on the following problem.

>This may seem like a dumb question, but how do you call a method in a
>CustomClass from another method in the same CustomClass??
>
>Eg.
>              CustomClass has 2 methods.
>              - helloThere
>              - seeYouTommorow
>
>              When I'm in, or done with, helloThere, how can I call
>              seeYouTommorow from within helloThere?
>
>I hope someone can help.
>Thanks

For some reason the compiler was telling me "CustomClass does not respond
to seeYouTommorow method"  when I used [self seeYouTommorow];

My problem was 2-fold.

1  the actual method name was 
              - seeYouTommorow:sender

              This was overcome by using:
              [self seeYouTommorow:self];

2  the second line of code was:

              value1=[sender floatValue];  (value1 is a global variable)

              To correct this problem I moved value1 into helloThere, and
              removed it from seeYouTommorow.
              This resolved my problem.

Thanks once again for all the responces, I appreciate it!!!!

PS Unfortunately I didn't know how to spell 'tomorrow', but now I do.
   Thanks for the correction.

A.J.
ajetha@gpu.utcs.utoronto.ca
or try 
ajetha@utcs.utoronto.ca

              
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads