SDL::Mac::ObjC

Public Class Methods

NSClass( *args ) click to toggle source
# File lib/ruby-sdl-ffi/sdl/mac.rb, line 200
def self.NSClass( *args )
  NSClass.new( *args )
end
NSObject( *args ) click to toggle source
# File lib/ruby-sdl-ffi/sdl/mac.rb, line 185
def self.NSObject( *args )
  NSObject.new( *args )
end
NSString( *args ) click to toggle source
# File lib/ruby-sdl-ffi/sdl/mac.rb, line 222
def self.NSString( *args )
  NSString.new( *args )
end
msgSend( id, selector, *args ) click to toggle source
# File lib/ruby-sdl-ffi/sdl/mac.rb, line 230
def self.msgSend( id, selector, *args )
  selector = self.sel(selector) if selector.is_a? String
  NSObject.new( __msgSend( id, selector, *args ) )
end
msgSend_bool( id, selector, *args ) click to toggle source
# File lib/ruby-sdl-ffi/sdl/mac.rb, line 246
def self.msgSend_bool( id, selector, *args )
  selector = self.sel(selector) if selector.is_a? String
  ( __msgSend_int( id, selector, *args ) == 0 ) ? false : true
end
msgSend_int( id, selector, *args ) click to toggle source
# File lib/ruby-sdl-ffi/sdl/mac.rb, line 242
def self.msgSend_int( id, selector, *args )
  selector = self.sel(selector) if selector.is_a? String
  __msgSend_int( id, selector, *args )
end
msgSend_ptr( id, selector, *args ) click to toggle source
# File lib/ruby-sdl-ffi/sdl/mac.rb, line 234
def self.msgSend_ptr( id, selector, *args )
  selector = self.sel(selector) if selector.is_a? String
  __msgSend( id, selector, *args )
end
msgSend_str( id, selector, *args ) click to toggle source
# File lib/ruby-sdl-ffi/sdl/mac.rb, line 238
def self.msgSend_str( id, selector, *args )
  selector = self.sel(selector) if selector.is_a? String
  NSString.new( __msgSend( id, selector, *args ) )
end
sel( name ) click to toggle source
# File lib/ruby-sdl-ffi/sdl/mac.rb, line 261
def self.sel( name )
  sel_registerName( name.to_s )
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.