• 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: How to get Button Caption??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get Button Caption??


  • Subject: Re: How to get Button Caption??
  • From: Jim Rankin <email@hidden>
  • Date: Fri, 12 Apr 2002 03:53:09 -0400

I think you want this method on NSButton:

public String title()
Returns the title displayed on the receiver when it's in its normal
state (this title is always displayed if the button doesn't use its
alternate contents for highlighting or displaying the alternate state).
Returns the empty string if the button doesn't display a title. By
default, a button's title is "Button".

Good luck!

Jim Rankin

WebObjects/EOF/Cocoa/AppleScript Studio developer for hire

On Friday, April 12, 2002, at 12:18 AM, praveena tandon wrote:

> Hai all,
> I am developing an application in cocoa-java in
> which i want to get the caption of the pushbutton and
> put it in the textedit field.But i can't able to find
> any functions like getLabel.
> If anyone has any idea how to do it please help me.
> Thanks
> praveena
> Yahoo! Tax Center - online filing with TurboTax
> http://taxes.yahoo.com/
> _______________________________________________
> 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.

References: 
 >How to get Button Caption?? (From: praveena tandon <email@hidden>)

  • Prev by Date: Re: Printing question
  • Next by Date: Re: ever felt like a complete BONZO??
  • Previous by thread: Re: How to get Button Caption??
  • Next by thread: NSTextView --> styled TextEdit, how?
  • Index(es):
    • Date
    • Thread