Re: Buttons and others
Re: Buttons and others
- Subject: Re: Buttons and others
- From: Camron Levanger <email@hidden>
- Date: Fri, 17 May 2002 04:12:48 -0600
That sounds like it might work, I'll try it now,
Thanks for helping!
Cam
On Friday, May 17, 2002, at 04:17 AM, email@hidden wrote:
Actually come to think of it, that wont work as there will still be a
responding NSView , just not drawn.
Maybe shrink the frame to a zero rect in the setvisible method?
---------------------- Forwarded by Warren Burton/LONDON/FINANCIAL
TIMES on
17/05/2002 10:16 AM ---------------------------
Warren Burton
17/05/2002 11:08 AM
To: email@hidden, Camron Levanger <email@hidden> @
FTIRELAY
cc:
Subject: Re: Buttons and others (Document link: Warren Burton)
im fairly sure there isnt one, which is strange as most swing things are
implemented in the cocoa API's.
you might have to subclass NSButton and override drawrect a la...
public class myButton extends NSButton
{
boolean isVisible;
public void setVisible(boolean val) { isVisible = val }
public void drawRect(NSRect rect)
{
if(isVisible) super.drawRect();
}
}
Camron Levanger <email@hidden>@lists.apple.com on 17/05/2002
09:36:33
AM
Sent by: email@hidden
To: email@hidden
cc:
Subject: Buttons and others
Hello,
I've been going over the Cocoa API's and can't seem to find what would
be the equivalent of :
button.setVisible(boolean);
(Java)
Sorry to post such a "newbie" question, and thanks for your help.
Cam
_______________________________________________
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.
*************************************************************************
*********
Our network may monitor outgoing and incoming e-mail messages for
security and customer service purposes, but this e-mail is confidential.
Please notify the sender immediately if you receive it in error, and
then delete it.
Thank you.
_______________________________________________
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.
_______________________________________________
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.