Re: -[NSTextField setStringValue]
Re: -[NSTextField setStringValue]
- Subject: Re: -[NSTextField setStringValue]
- From: Matt Neuburg <email@hidden>
- Date: Fri, 14 Jun 2002 14:49:03 -0700
On Wed, 12 Jun 2002 21:32:46 -0600, Clark Mueller <email@hidden> said:
>
I have an NSTextField and an NSString whose value is to go into it. I have
>
many other text fields as well, with the same situation. I am only having
>
problems with one, and I don't understand why. What happens is that when I
>
make the call to setStringValue:, i can pass the NSString object, and it
>
is displayed in the text field, but behind it is a variety of jargon that
>
changes each time the field is changed (the correct text (an HFS type
>
code) is still displayed in front of it).
I bet there is something wrong with your handling of this string. The
problem has nothing to do with setStringValue; it's what you're doing with
the string before that. If you show the code by which you are obtaining the
string and passing it around and holding onto it before passing it to
setStringValue, it may be possible to see what's wrong with it. Perhaps at
some point along the way you're failing to retain the string where you need
to. (I myself have seen a string turn into nonsense for this very reason.)
Or perhaps there's a problem with the code that sets the string's value
initially. m.
--
matt neuburg, phd = email@hidden,
http://www.tidbits.com/matt
pantes anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart.
http://www.tidbits.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.