Skip to main content

Source File Organization

  • Chapter
Learn Objective-C on the Mac

Abstract

So far, every project we’ve talked about has had all its source code crammed into its main.m file. The main() function and all the @interface and @implementation sections for our classes are piled into the same file. That structure’s fine for small programs and quick hacks, but it doesn’t scale to larger projects. As your program gets bigger, you’ll have a ponderous file to scroll through, making finding stuff harder.

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 34.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 44.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

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2012 Scott Knaster, Waqar Malik, Mark Dalrymple

About this chapter

Cite this chapter

Knaster, S., Malik, W., Dalrymple, M. (2012). Source File Organization. In: Learn Objective-C on the Mac. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-4189-8_6

Download citation

Publish with us

Policies and ethics