• 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: changing the text in an NSTextField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: changing the text in an NSTextField


  • Subject: Re: changing the text in an NSTextField
  • From: zauhar <email@hidden>
  • Date: Tue, 1 Jul 2003 10:04:58 -0400

Michael, -setStringValue:(NSString *)v should work.

Randy


On Tuesday, July 1, 2003, at 09:28 AM, Michael George wrote:

I have an interface which I've built with IB. I have a pair of buttons with text preceding them and I would like to programmatically change that text on the screen depending on what the buttons will be indicating.

I don't want the text editable or even selectable, I just want to change the string/title and be able to affect the change to the > screen.

I have looked at the methods available for NSTextField and I cannot find anything which does this. NSTextView seems to be more amenable to changing the string, but IB doesn't have an object for that.

It seems a very simple thing to want to do, so I'm guessing that the way I think it would be done is not the way it *should* be done and that if I find the "Cocoa way" it will be very straightforward...

Thanks!
-Michael
_______________________________________________
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.



Randy J. Zauhar, PhD
Assoc. Prof. of Biochemistry
Director, Graduate Program in Bioinformatics
Dept. of Chemistry & Biochemistry
University of the Sciences in Philadelphia
600 S. 43rd Street
Philadelphia, PA 19104

Phone: (215)596-8691
FAX: (215)596-8543
E-mail: email@hidden
Web: http://tonga.usip.edu/zauhar


Discussion after watching Disney's "Lilo & Stitch":

DAD: "But why did the space aliens speak English, as opposed to French, or Swahili? And why did the one alien speak English with an Eastern European accent? I don't get it."

CATHERINE (age 7): "That's 'cause you don't have a good cartoon brain."
_______________________________________________
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: 
 >changing the text in an NSTextField (From: Michael George <email@hidden>)

  • Prev by Date: [OT}Re: Strong language about Cocoa and Qt.
  • Next by Date: Re: changing the text in an NSTextField
  • Previous by thread: Re: changing the text in an NSTextField
  • Next by thread: Re: changing the text in an NSTextField
  • Index(es):
    • Date
    • Thread