more 'new to cocoa' problems... typo fix!!!
more 'new to cocoa' problems... typo fix!!!
- Subject: more 'new to cocoa' problems... typo fix!!!
- From: Ruben Westerberg <email@hidden>
- Date: Thu, 11 Oct 2001 21:28:04 +1000
I fixed the typo from my last email... :) don't know what happened
there....
The actual code doesn't have a typo in it.
Hi all,
Thanks for help with my last time posted, it helped a lot!
The next problem that i can't get my head around is as follows(probably
some silly thing):
I have three objects all of different types.
Objects 2 and 3 are accessing object 1 through the same method,
-(SNPComponent *)currentComponent;
When I compile I get no errors but 2 warnings:
warning: cannot find method.
warning: return type for 'currentComponent' defaults to id
If I comment out the call in object 2, leaving the same code
un-commented in object 3, this warning goes away.
Both object 2 and 3 have references to the same instance of object 1 and
the calls are made within the respective designated initializers.
Is this some special access problem.....or ???? As I said I am very
new to objective c.
I would greatly appreciate any advice.
Thanks
Ruben