Re: Variables: Why one way and not another?
Re: Variables: Why one way and not another?
- Subject: Re: Variables: Why one way and not another?
- From: Brian Christensen <email@hidden>
- Date: Sat, 1 Nov 2003 16:23:10 -0500
On Nov 1, 2003, at 11:38 AM, Robert Borsuk wrote:
Woohoo. Okay, thanks Andreas, Alastair (and his project) and Uli. I
got it solved. Here's what I was doing wrong. When I made the nib I
instantiated the subclass in IB so I could connect my buttons actions
to it. Wrong. I should have just connected the button to the view.
This fixed the problems. It was weird because the action would be
called. Then it dawned on me with what Andreas said. I guess I was
actually creating two instances (one in the window and one I
instantiated. Life is good once again and my variables now work.
Thanks for everyones help.
You really shouldn't be connecting your buttons to your view though.
Create a controller class instead.
/brian
------------------------------------------------------------------
Brian Christensen <email@hidden>
Cocoa Dev Central <
http://www.cocoadevcentral.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.