Chapter 25. Closing Snippets

Miscellaneous Traps

  • Case-insensitive file names: HFS+, the recommended file system for Mac OS X, is case preserving—files will get names in the same case as you provide—but case insensitive: Xcode.txt, XCODE.TXT, and xcode.txt all refer to the same file. Most other UNIX variants are case sensitive, so if you import code, be on the lookout for the assumption that, say, the following two lines refer to different files:

        #include "polishStrings.h"
        #include "PolishStrings.h"

    By the same token, make sure that your code uses file names with consistent letter casing. Even if you don’t expect to port your work, HFS+ isn’t the only file system a Macintosh application sees, and a case-sensitive version of HFS+ does exist.

  • Library ...

Get Step into Xcode Mac OS X Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.