Where can I get a complete list of all NS (Cocoa) based classes?

Where can I get a complete list of all NS based classes?

+1


a source to share


5 answers


As far as I remember, the Foundation, AppKit, and Core Data frameworks contain all the inexhaustible NS * classes. You can find links to Foundation , AppKit , and Core Data at developer.apple.com or in the documentation installed locally using Apple's developer tools (use Xcode Help-> Documentation). For a list of all Cocoa frameworks, run here .



+5


a source


Xcode -> Help -> Documentation: Look at the app link and Foundation link. I'm sure there is similar documentation on the apple dev website.



+4


a source


+1


a source


There is a free app that Andy Lee wrote that is very useful for quickly accessing a method called AppKiDo:

http://homepage.mac.com/aglee/downloads/appkido.html

It gives you the ability to include individual frames in your search results.

+1


a source


If you just want to knock out a list of all classes based on object c, just open a terminal, run

grep -Rho "@interface [a-zA-Z]\+" /Applications/Xcode.app/Contents/Developer/Platforms | cut -d" " -f2 | awk '!a[$0]++' | sort

      

You will need Xcode. It will take some time, but it covers all platforms (macOS, tvOS, watchOS, etc.). To simply target a specific platform, adjust your path accordingly. So, to change macOS only:

/Applications/Xcode.app/Contents/Developer/Platforms

      

at

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk

      

or you can narrow it down to a specific structure. This will work for protocols too. Just change @interface to @protocol.

+1


a source







All Articles