Skip to main content

Working with Files

  • Chapter
  • First Online:
Book cover Learn Cocoa on the Mac
  • 728 Accesses

Abstract

Most applications will need to deal with files stored on disk in one way or another. So far in this book, we really haven’t dealt much with this topic (except for a bit of discussion about Core Data and its data stores), so let’s remedy that right now. Cocoa actually includes several useful classes for dealing with files in a number of ways. There are classes that provide APIs mimicking operations the user can normally do in the Finder and others that represent a file in an abstract way. Still other classes have built-in functionality for reading and writing files. This chapter will provide an overview of how these mechanisms work.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 29.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 39.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2013 Jack Nutting

About this chapter

Cite this chapter

Nutting, J., Clark, P. (2013). Working with Files. In: Learn Cocoa on the Mac. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-4543-8_16

Download citation

Publish with us

Policies and ethics