On 21/07/2008, at 6:26 AM, Phil Faber wrote:
On 20 Jul 2008, at 13:16, Ron Fleckner wrote:
Still struggling with documentation!
That might be because the documentation makes the reasonable
assumption that you already know how to use C and Objective-C.
You're not recognising the differe
Thanks to all who helped me with this challenge of obtaining the
number of characters in a string.
On 20 Jul 2008, at 13:12, Tim Isted wrote:
Try using
[text2 setStringValue:[NSString stringWithFormat:@"%i", [[Field1
stringValue] length]]];
Using setIntValue on a text field
On Jul 20, 2008, at 8:12 AM, 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.
I believe this is incorrect. Try s
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 se
On 20/07/2008, at 9:56 PM, Phil Faber wrote:
Still struggling with documentation!
That might be because the documentation makes the reasonable
assumption that you already know how to use C and Objective-C.
Simple task. I have two text fields (text1 & text2) and all I'm
trying to achi
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
On 20 Jul 2008, at 12:56, Phil Faber wrote:
Still struggling with document
Still struggling with documentation!
Simple task. I have two text fields (text1 & text2) and all I'm
trying to achieve is to put into text2 a number specifying how many
characters there are in the text in text1.
I started with:
[text2 setStringValue:[text1 stringValue]];
..just to make s