Created
April 24, 2010 18:55
-
-
Save mrchrisadams/377848 to your computer and use it in GitHub Desktop.
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
#! usr/local/bin/macruby | |
# this script spits out a list of classes that are available to you when you've loaded in the following frameworks | |
# I used it to poke around a bit, and find out what classes I'd need to use to create for cocoa authentication | |
require 'fileutils' | |
framework 'Cocoa' | |
framework 'Security' | |
framework 'SecurityInterface' | |
mr_classes = [] | |
ObjectSpace.each_object(Class) {|x| mr_classes << x } | |
File.open('macruby_classes_list.txt', 'w') do |file| | |
mr_classes.each {|klass| file.puts("#{klass}\n")} | |
macruby-0.5 ?> end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment