RE: Re: Programatically connect a NSNumberFormatter[Solved]
RE: Re: Programatically connect a NSNumberFormatter[Solved]
- Subject: RE: Re: Programatically connect a NSNumberFormatter[Solved]
- From: "Peter Karlsson" <email@hidden>
- Date: Tue, 19 Oct 2004 15:49:44 +0200
Thanks, works very nice.
Peter
Ursprungligt meddelande
>
>
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