• 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: How to make a NonBreakingString component
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to make a NonBreakingString component


  • Subject: Re: How to make a NonBreakingString component
  • From: Chuck Hill <email@hidden>
  • Date: Tue, 15 Apr 2008 13:03:53 -0700

I'd write a formatter and use the formatter binding:

AString: WOString {
    value = someString;
    formatter = nonBreakingSpaceFormatter;
}

Formatters are more flexible in terms of reusability that components.


Chuck


On Apr 15, 2008, at 12:58 PM, John Huss wrote:

I'd like to make a component that is exactly like WOString except that it replaces all spaces with &nbsp; (non-breaking spaces). Is there an easy way to do that without having to write all the code to handle the dateformat and numberformat stuff? Is there an existing component that already does something like this? Either way, it would be educational to know how to approach it if I wanted to build my own.

Thanks
John
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

--

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects






_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >How to make a NonBreakingString component (From: "John Huss" <email@hidden>)

  • Prev by Date: How to make a NonBreakingString component
  • Next by Date: Re: Local Instance of EO Problem
  • Previous by thread: How to make a NonBreakingString component
  • Next by thread: Re: How to make a NonBreakingString component
  • Index(es):
    • Date
    • Thread