Skip to content

Instantly share code, notes, and snippets.

@mattstevens
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattstevens/9712783 to your computer and use it in GitHub Desktop.
Save mattstevens/9712783 to your computer and use it in GitHub Desktop.
Preference Panes and Garbage Collection
- On 10.6 and 10.7 System Preferences's 64-bit image requires GC. If the user opens a preference pane
that does not support GC System Preferences will restart as a 32-bit process, provided that the
preference pane has a 32-bit image.
- On 10.8+ System Preferences's 64-bit image supports GC but does not require it, and by default it
launches with GC disabled. If the user opens a preference pane that requires GC System Preferences
relaunches with GC enabled, but still as a 64-bit process.
So if your deployment target is <= 10.7 you'll get the best user experience by building with
GCC_ENABLE_OBJC_GC = supported, as the preference pane will run on all platforms without requiring a
relaunch. If your deployment target is 10.8+ you can build without GC support. Many (all?) of the
system-provided preference panes no longer support GC.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment