Class: OSX::NSData

Inherits:
Object show all
Defined in:
src/ruby/osx/objc/cocoa_macros.rb

Overview

NSData additions.

Class Method Summary (collapse)

Class Method Details

+ (OSX::NSData) dataWithRubyString(str)

Deprecated.

DO NOT USE. use NSString#dataUsingEncoding().

Returns:



37
38
39
40
# File 'src/ruby/osx/objc/cocoa_macros.rb', line 37

def NSData.dataWithRubyString (str)
  warn "#{caller[0]}:: NSData.dataWithRubyString will be deprecated."
  NSData.dataWithBytes_length( str )
end