• 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
Trying to connect my Controller Class to my Model Class
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Trying to connect my Controller Class to my Model Class


  • Subject: Trying to connect my Controller Class to my Model Class
  • From: Britt Green <email@hidden>
  • Date: Sat, 8 Mar 2003 20:40:02 -0800 (PST)

Hello all,

I'm writing my first Cocoa project. Its quite simple: it checks to see
if two strings are equal. I'm basing it off the Currency Converter app
in the Learning Cocoa with Obj C book published by O'Reilly.


So...I'm working in IB right now, and I've laid out my GUI. I created
and instantiated a class called Controller, and another called Equality
(this will be the model class.) The Controller class has an Action
called "equality", as well. After doing this, I've CTRL-dragged the
Controller instance to the three NSTextField's in my window. Then I
CTRL-dragged the one button back to the Controller class. At this point
I connected the button to the equality: Action.

The next step is to CTRL-drag the Controller onto the Equality class,
and connect it to the equality Action. Unfortunately, I don't see the
equality Acxtion listed! I see the names of the three NSTextFields
outlets, but that's it.

What am I doing wrong?

Britt

PS: Is there a better explanation of what the CTRL-dragging does than
is found in this book? It seems to spend very little time on it.

=====
"The ocean, she is strange and wonderous, filled with animals that disturb even a Frenchman."
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
_______________________________________________
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.

  • Prev by Date: Re: NSOpenPanel Question
  • Next by Date: Re: [newbie] Updating an NSProgressIndicator in a for loop
  • Previous by thread: Re: NSOpenPanel Question
  • Next by thread: Realtime output from NSSlider
  • Index(es):
    • Date
    • Thread