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

changing the text in an NSTextField


  • Subject: changing the text in an NSTextField
  • From: Michael George <email@hidden>
  • Date: Tue, 1 Jul 2003 09:28:54 -0400

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.

  • Follow-Ups:
    • Re: changing the text in an NSTextField
      • From: Robert Fischer <email@hidden>
    • Re: changing the text in an NSTextField
      • From: zauhar <email@hidden>
    • Re: changing the text in an NSTextField
      • From: publiclook <email@hidden>
  • Prev by Date: Re: Strong language about Cocoa and Qt.
  • Next by Date: Re: Undefined symbols in C++ project
  • Previous by thread: Re: Strong language about Cocoa and Qt.
  • Next by thread: Re: changing the text in an NSTextField
  • Index(es):
    • Date
    • Thread