Re: nstextfield question

2012-04-29 Thread Rick C.
I think I got it working thanks for the help! On Apr 28, 2012, at 1:48 PM, Graham Cox wrote: > Use NSNumberFormatter as correctly suggested. You can set its > -positiveSuffix: string to "Days" and that's it. You're done. > > --Graham > > > > > > On 28/04/2012, at 2:41 PM, Rick C. wrote:

Re: nstextfield question

2012-04-27 Thread Graham Cox
Use NSNumberFormatter as correctly suggested. You can set its -positiveSuffix: string to "Days" and that's it. You're done. --Graham On 28/04/2012, at 2:41 PM, Rick C. wrote: > Thanks for the reply but unfortunately I'm still stuck. Yes I did try the > delegate methods before posting here

Re: nstextfield question

2012-04-27 Thread Rick C.
Thanks for the reply but unfortunately I'm still stuck. Yes I did try the delegate methods before posting here. I did not try the formatter methods but can't figure out a way to make it work either. None of these methods seem to get called if the text field is still in focus and the value is

Re: nstextfield question

2012-04-27 Thread Charlie Dickman
You should have a look at the documentation for NSFormatter. You can define a formatter for your text field that gets called when a number of different things happen to/in the text field. You might also want to have a look at the delegate methods available for an NSTextField which get called wh

nstextfield question

2012-04-27 Thread Rick C.
Hi, I might be getting sleepy and overlooking the obvious, but I have a panel with a few text fields and I'm trying to figure out what gets called after entering a value into a text field and while it's still highlighted clicking it again? In my case when entering a value into one of my text f