• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: Re: Programatically connect a NSNumberFormatter[Solved]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Programatically connect a NSNumberFormatter
  • Next by Date: Re: NSPopUpCell/NSTableView/Bindings via code
  • Previous by thread: Re: Programatically connect a NSNumberFormatter
  • Next by thread: answering cocoa-dev questions
  • Index(es):
    • Date
    • Thread