Still having problems with IBOutlets
Still having problems with IBOutlets
- Subject: Still having problems with IBOutlets
- From: Ken Pesanka <email@hidden>
- Date: Fri, 8 Mar 2002 09:18:24 -0500
I still am having very odd problems with IBOutlets in my program. Some
of the outlets respond to messages, some don't. It is seemingly at
random.
Here's the line from the header file for my controller object that
declares the buttons:
IBOutlet NSButton *tester, *boardButton, *bostonButton,
*lastTrickButton, *bidButton;
Here's a few lines where I try to pass messages to the buttons in
awakeFromNib:
[bostonButton setEnabled:false];
[boardButton setEnabled:false];
[lastTrickButton setEnabled:false];
In this situation, only lastTrickButton is actually disabling - the
other two ignore my messages. Also, if I do an NSLog(@"bostonButton:
%d", bostonButton); i receive a response that indicates bostonButton is
nil (0).
The buttons were created in Interface Builder, and the connections from
the instantiated controller to the buttons are all correct.
Any thoughts on what I might be doing wrong? This problem has plagued
me for a few days, and I can't figure it out for the life of me. Thanks
in advance for any help!
-Ken
_______________________________________________
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.