Re: Are method declarations just comments?
Re: Are method declarations just comments?
- Subject: Re: Are method declarations just comments?
- From: Chris Gehlker <email@hidden>
- Date: Sun, 08 Jul 2001 06:45:07 -0700
On 7/8/01 2:35 AM, "Gerard Iglesias" <email@hidden> wrote:
>
Le Sunday 8 July 2001, ` 08:52, Chris Gehlker a icrit :
>
>
Hi everyone,
>
>
I'm pretty new to Cocoa, just working my way through "Learning Cocoa" in
>
fact. I noticed that the book was having me add methods in .m files
>
without
>
declaring them in the corresponding .h file and the programs were still
>
compiling and running w/o warnings. So I went back and commented out
>
method
>
declarations and even changed them so they declared the wrong type of
>
arguments. Again it didn't seem to matter. I'm beginning to fear that
>
they're just comments. Someone say it isn't so.
Merci, Andreas and Gerard.
I see now that method declarations do matter, though one may have 'hidden'
methods.
In case this helps someone else, my problem was not understanding how PB
works when one chooses "Don9t Save" in response to the dialog that pops up
when you click the build icon. What gets compiled is the old, unchanged,
version. This is very different from CodeWarrior which will compile the
changes without saving them to disk. I was just build the old program again
and concluding my changes didn't make a difference.
--
Every society honors its live conformists and its dead troublemakers.
-Mignon McLaughlin, author