Importing Frameworks To import a framework in RubyCocoa, you use a combination of Rubyâs require method and RubyCocoaâs require_framework addition: # RubyCocoa code require 'osx/cocoa' OSX.require_framework('CoreData') MacRuby unifies these methods with the framework method added to the Kernel module: # MacRuby code framework 'Cocoa' framework 'CoreData' Namespaces In RubyCocoa, all imported Objec
{{#tags}}- {{label}}
{{/tags}}