Last active
August 29, 2015 13:57
-
-
Save mattstevens/9712783 to your computer and use it in GitHub Desktop.
Preference Panes and Garbage Collection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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