• 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: Creating a Custom Formatter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating a Custom Formatter


  • Subject: Re: Creating a Custom Formatter
  • From: Larry Fransson <email@hidden>
  • Date: Sat, 23 Oct 2004 00:09:48 -0700


On Oct 22, 2004, at 12:50, John Spicer wrote:

Has anyone done this, and could they share some code? I'd like my custom formatter to only act when the user presses return or tabs out of the field. I can't find a method to do this.

Is it necessary to set the owning NSTextField to send a message when editing is finished, and therefor the isPartialStringValid:newEditingString:errorDescription: method is only called at this time?

The -isPartialStringValid:newEditingString:errorDescription: method is only used when you want the formatter to act while editing is in progress. If you get rid of it, your formatter should work only once editing is completed.

Larry Fransson
Seattle, WA
_______________________________________________
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: 
 >Creating a Custom Formatter (From: John Spicer <email@hidden>)

  • Prev by Date: [REQUEST] Calling all Interface Builder Palettes
  • Next by Date: Re: ADC TV w/ ADC Select
  • Previous by thread: Creating a Custom Formatter
  • Next by thread: Layouting NSTableView Headers
  • Index(es):
    • Date
    • Thread