Re: Window visiblity and Check Boxes
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!
>
>
Ive got two problems:
>
>
First:
>
How do I make an window invisible? I tried [window setVisible:NO]; but that
>
didnt 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.