Re: MVC problem (solved)
Re: MVC problem (solved)
- Subject: Re: MVC problem (solved)
- From: Luc Vandal <email@hidden>
- Date: Fri, 11 Feb 2005 15:59:45 -0500
Turns out the outlet for appModel in the controller class was disconnected :) That was the problem!
On 11-Feb-05, at 3:58 PM, Brendan Younger wrote:
On Feb 11, 2005, at 2:49 PM, Luc Vandal wrote:
Hi!
-(void)keyDown:(NSEvent*)event
{
int i=0;
i = [appModel test]; //This line is disregarded!!!
}
The instance variable "appModel" has not been initialized to anything. Therefore it equals nil. Messages sent to nil objects are ignored. You should really try going through some tutorials first, before attempting to jump-start your own application.
Brendan Younger
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >MVC problem (From: Luc Vandal <email@hidden>) |