more 'new to cocoa' problems...
more 'new to cocoa' problems...
- Subject: more 'new to cocoa' problems...
- From: Ruben Westerberg <email@hidden>
- Date: Thu, 11 Oct 2001 18:58:48 +1000
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 *)currentCompnent;
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