Re: Help with checkboxes needed
Re: Help with checkboxes needed
- Subject: Re: Help with checkboxes needed
- From: Shawn Erickson <email@hidden>
- Date: Thu, 28 Sep 2006 09:08:01 -0700
On Sep 28, 2006, at 9:00 AM, Artemiy Pavlov wrote:
Hey guys,
all seems to work this way:
IBOutlet NSButton * MyCheckbox;
...
[MyCheckbox setState:MyCheckboxState];
...
MyCheckboxState = [MyCheckbox state];
However, on compile I get this:
warning: 'NSButton' may not respond to '-state:'
Should I define/connect the checkbox in some other way?
Note the compiler says "-state:"... "state" with a ":" after it...
you are sending the wrong message. So the code you outline above
isn't the code at fault or you corrected it when you copied it into
this email.
It is "state" without a parameter. Review the API docs...
<http://developer.apple.com/documentation/Cocoa/Reference/
ApplicationKit/Classes/NSButton_Class/Reference/Reference.html#//
apple_ref/occ/instm/NSButton/state>
-Shawn
_______________________________________________
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