• 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: NSTextField setting text programatically?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextField setting text programatically?


  • Subject: Re: NSTextField setting text programatically?
  • From: Julian Barkway <email@hidden>
  • Date: Wed, 15 May 2002 23:12:39 +0200

On Wednesday, May 15, 2002, at 09:24 pm, Laurence Kirchmeier wrote:

In Interface Builder, I chose an NSTextString to be the display object inside the window. I have been unable to discover a method to directly change the contents of the string that is displayed in the NSTextField. Is there a way to do this?

Yes. setStringValue: in NSControl.

General note about browsing the docs:

If you can't see what you're after in the specific class you're browsing, always try looking at the superclass chain. If you still can't find a method that does what you want, look at any protocols the object conforms to. If that fails, check to see if there's another class that might do the job better. After all this, if you're still stumped, think about posting to the list....

Anybody fancy compiling a faq?
_______________________________________________
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: 
 >NSTextField setting text programatically? (From: Laurence Kirchmeier <email@hidden>)

  • Prev by Date: Re: Simple NSTableView Question - Newbie
  • Next by Date: Problem with cursor rects?
  • Previous by thread: Re: NSTextField setting text programatically?
  • Next by thread: Embedding external applications in a window
  • Index(es):
    • Date
    • Thread