Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

Next Page > Hide TOC

Introduction to Data Formatting Programming Guide For Cocoa

Contents:

Who Should Read This Document
Organization of This Document


This document describes how to use formatter objects to create and interpret formatted strings using formatter objects. The Foundation framework provides NSDateFormatter and NSNumberFormatter classes and the Core Foundation framework provides CFDateFormatter and CFNumberFormatter opaque types, but in contrast to many other similarly-named classes and types, they are not toll-free bridged. In Cocoa, you can use the formatters to validate the text in text fields and other cells, and to extend an abstract class to create your own formatter.

Who Should Read This Document

You should read this document to gain an understanding of how to use formatters in Cocoa, and to understand the difference in the behavior of formatters between Mac OS X versions 10.0 to 10.3 and from 10.4 onwards.

Organization of This Document

The following articles describe the role of formatters, how they work, and how you can configure them:



Next Page > Hide TOC


Last updated: 2007-03-20




Did this document help you?
Yes: Tell us what works for you.

It’s good, but: Report typos, inaccuracies, and so forth.

It wasn’t helpful: Tell us what would have helped.
Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2007 Apple Inc.
All rights reserved. | Terms of use | Privacy Notice