Re: Programatically connect a NSNumberFormatter
Re: Programatically connect a NSNumberFormatter
- Subject: Re: Programatically connect a NSNumberFormatter
- From: stephane sudre <email@hidden>
- Date: Tue, 19 Oct 2004 15:28:08 +0200
On Oct 19, 2004, at 3:07 PM, Peter Karlsson wrote:
Dear list!
I wonder if it's possible to programatically connect a
NSNumberFormatter to
a NSTextField, and later when the formatter is not needed disconnect it
from the same textfield?
It is.
The point is that I use the same textfield for different inputs, some
with
numbers and some without.
- (void)setFormatter:(NSFormatter *)newFormatter
set newFormatter to nil to "disconnect the old one".
Be sure to retain it if needed and if you want to set it back later.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden