Re: NSTextField setting text programatically?
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.