• 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: Buttons and others
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Buttons and others


  • Subject: Re: Buttons and others
  • From: email@hidden
  • Date: Fri, 17 May 2002 11:08:18 +0100

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.

  • Prev by Date: insertText in NSOutlineView? (for Autolocator)
  • Next by Date: Re: Buttons and others
  • Previous by thread: Re: Buttons and others
  • Next by thread: Re: Buttons and others
  • Index(es):
    • Date
    • Thread