• 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: Programatically connect a NSNumberFormatter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Programatically connect a NSNumberFormatter (From: "Peter Karlsson" <email@hidden>)

  • Prev by Date: Re: NSTableView again
  • Next by Date: RE: Re: Programatically connect a NSNumberFormatter[Solved]
  • Previous by thread: Programatically connect a NSNumberFormatter
  • Next by thread: RE: Re: Programatically connect a NSNumberFormatter[Solved]
  • Index(es):
    • Date
    • Thread