Class: SDL::Mac::ObjC::NSObject

Inherits:
NiceFFI::OpaqueStruct
  • Object
show all
Defined in:
lib/ruby-sdl-ffi/sdl/mac.rb

Direct Known Subclasses

Cocoa::NSMenu, Cocoa::NSMenuItem, NSClass, NSString

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.nsclassnameObject



165
# File 'lib/ruby-sdl-ffi/sdl/mac.rb', line 165

def self.nsclassname; name.split("::")[-1]; end

Instance Method Details

#inspectObject



180
# File 'lib/ruby-sdl-ffi/sdl/mac.rb', line 180

def inspect; msg_str("description").to_s; end

#nsclassnameObject



181
# File 'lib/ruby-sdl-ffi/sdl/mac.rb', line 181

def nsclassname; ObjC.object_getClassName(@pointer); end

#releaseObject



182
# File 'lib/ruby-sdl-ffi/sdl/mac.rb', line 182

def release; msg("release"); end