Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Newbiesque question

Newbiesque question
Thread Tools
Admin Emeritus
Join Date: Oct 2000
Location: Boston, MA
Status: Offline
Reply With Quote
Jan 28, 2001, 12:38 PM
 
[disregard]

[This message has been edited by parallax (edited 01-28-2001).]
"Against stupidity, the gods themselves contend in vain" (Schiller)
     
Admin Emeritus
Join Date: Oct 2000
Location: Boston, MA
Status: Offline
Reply With Quote
Jan 28, 2001, 12:46 PM
 
Whoops. I got around this. Here's what I did:

Define an outlet in myWindow for myController, Hook it up, and call it that way. I guess this is the proper way to solve the problem?
"Against stupidity, the gods themselves contend in vain" (Schiller)
     
Mac Enthusiast
Join Date: Feb 2000
Location: Storrs,Connecticut, USA
Status: Offline
Reply With Quote
Jan 28, 2001, 01:29 PM
 
Well, of course it gave you an error. You didn't give it an object to use, you gave it a class! When you hooked up an outlet you were using a pointer to an actual object, not just a class. How is it supposed to know whether you have 1 or 100 instances of that class? You have to tell it what object to use. Maybe you have a program which has multiple windows open. Then how is it supposed to tell which controller to send it to unless you give it a specific object. In this case it sounds like you only have one windo but the same rules still apply.
     
Admin Emeritus
Join Date: Oct 2000
Location: Boston, MA
Status: Offline
Reply With Quote
Jan 28, 2001, 06:50 PM
 
Yeah, I know. I just figured that out after I posted (it's *always* the stupid things)
"Against stupidity, the gods themselves contend in vain" (Schiller)
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:13 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2