• 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: Window visiblity and Check Boxes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Window visiblity and Check Boxes


  • Subject: Re: Window visiblity and Check Boxes
  • From: "Clark S. Cox III" <email@hidden>
  • Date: Sun, 19 May 2002 13:36:50 -0400

On 05/19/2002 13:11, "Martin Weil" <email@hidden> wrote:

> Hi!
>
> I ve got two problems:
>
> First:
> How do I make an window invisible? I tried [window setVisible:NO]; but that
> didn t worked.

Use [ window orderOut: nil ]

>
>
> Second:
> I tried to write a Check Box value into a Boolean
>
> BOOL makeLog;
>
> makeLog = [makeLogCheckBox boolValue];

NSButton does not implement boolValue, use intValue instead. Remember
that check boxes can also have a third, indeterminate state.

> But I get this error when the action is called:
>
> 2002-05-19 19:09:36.990 ThisProgram[6161] *** -[NSButton boolValue]:
> selector not recognized
> 2002-05-19 19:09:36.996 ThisProgram[6161] *** -[NSButton boolValue]:
> selector not recognized

Whenever you see this, always go check the documentation/headers to make
sure that the class in question actually implements the method in question.

--
Clark S. Cox III
http://clarkcox.dyndns.org/
email@hidden
_______________________________________________
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.

References: 
 >Window visiblity and Check Boxes (From: Martin Weil <email@hidden>)

  • Prev by Date: Re: Window visiblity and Check Boxes
  • Next by Date: Re: Obj-C, class methods and instance methods
  • Previous by thread: Re: Window visiblity and Check Boxes
  • Next by thread: Re: Window visiblity and Check Boxes
  • Index(es):
    • Date
    • Thread