Skip to content

Instantly share code, notes, and snippets.

@jspahrsummers
Last active October 2, 2015 15:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jspahrsummers/2268658 to your computer and use it in GitHub Desktop.
Save jspahrsummers/2268658 to your computer and use it in GitHub Desktop.
AppKit classes not supporting weak references (on 10.7)
# In a class-dump of AppKit:
$ ack -l '\)(retain|release);' . | awk -F '.' '{ print $1 }'
__NSATSStringSegment
__NSFontTypefaceInfo
__NSSharedFontInstanceInfo
_NSCachedAttributedString
_NSStateMarker
NSATSGlyphStorage
NSATSTypesetter
NSAttributeDictionary
NSCachedColorSpaceColor
NSCachedDeviceRGBColor
NSCachedDeviceWhiteColor
NSCachedRGBColor
NSCachedWhiteColor
NSColorSpace
NSCTFont
NSCTFontDescriptor
NSCTGlyphInfo
NSDynamicSystemColor
NSFont
NSFontManager
NSFontPanel
NSImage
NSISVariable
NSLazyBrowserCell
NSLineFragmentRenderingContext
NSObject-Protocol
NSParagraphStyle
NSPersistentUIEncodedReference
NSPersistentUIWindowInfo
NSPrintInfoDictionaryProxy
NSStringDrawingTextStorage
NSSubTextStorage
NSTableCellView
NSTempAttributeDictionary
NSTextTab
NSTextView
NSViewController
NSViewHierarchyLock
NSWindow
NSWindowController
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment