• 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
Re: Help with checkboxes needed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Help with checkboxes needed
      • From: Artemiy Pavlov <email@hidden>
References: 
 >Help with checkboxes needed (From: Artemiy Pavlov <email@hidden>)
 >Re: Help with checkboxes needed (From: Hank Heijink <email@hidden>)
 >Re: Help with checkboxes needed (From: Artemiy Pavlov <email@hidden>)
 >Re: Help with checkboxes needed (From: Artemiy Pavlov <email@hidden>)

  • Prev by Date: Re: Help with checkboxes needed
  • Next by Date: Re: Help with checkboxes needed
  • Previous by thread: Re: Help with checkboxes needed
  • Next by thread: Re: Help with checkboxes needed
  • Index(es):
    • Date
    • Thread