Re: Sometimes a method gets called, sometimes it doesn't.
Re: Sometimes a method gets called, sometimes it doesn't.
- Subject: Re: Sometimes a method gets called, sometimes it doesn't.
- From: email@hidden
- Date: Fri, 26 Apr 2002 18:53:03 +0200
On vendredi, avril 26, 2002, at 06:19 , {le_MoJo} wrote:
Well, first of all, hi to the list!
Second, I'm quite a beginner, so please forgive my (sometimes) stupid
questions.
Third, my problem. I have an app with two controllers: a mainController
and a prefsManager. They are both connected as outlets for each other
in IB (that is IBOutlet id mainController defined in the prefsmanager
class, and vice-versa). In prefsManager i call one of mainController's
methods (-updateSwitches), that is, i do [mainController
updateSwitches]; and when I compile, I get the following message:
warning: cannot find method; and warning: -updateSwitches return
defaults to id. Well, you say, there's something you are not doing
well... But the next time i try to compile, IT WORKS!! without touching
anything! What could that be?
If the file is not modified, if the header it imports/includes are not
modified. It's not going to be recompiled. So the warning is not
displayed. A warning does not prevent compilation.
As for your not found problem, just check that you import the proper
headers.
Hope it helps.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.