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 interpret and create strings that represent other data types, and to validate the text in text fields and other cells. You can also 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


© 2008 Apple Inc. All Rights Reserved. (Last updated: 2008-10-15)


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.