• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: MVC problem (solved)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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>)

  • Prev by Date: Re: MVC problem
  • Next by Date: Re: MVC problem - (unrelated)
  • Previous by thread: MVC problem
  • Next by thread: Re: MVC problem - (unrelated)
  • Index(es):
    • Date
    • Thread