You can also use a formatter (which can be set up in IB) that allows you to call setIntValue: on a text field and have it display something sensible.

Not sure if that will help or hinder, but it's there FWIW,

hth

Graham


On 20 Jul 2008, at 10:12 pm, Tim Isted wrote:

Try using

[text2 setStringValue:[NSString stringWithFormat:@"%i", [[textField1 stringValue] length]]];

Using setIntValue on a text field won't set the text field's stringValue to be a string from that int.

Tim


[text2 setIntValue:[text1 length]];


_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to