#407: NSData#bytes does not work
[...]
Changes (by lsansone...@?):
Comment:
Should be fixed by r2916:
It is indeed fixed, thank you! My initial purpose for this was to get
the data out of an NSData, which in RubyCocoa was
data.bytes.bytestr(data.length)
It seems the MacRuby "Pointer" class no longer has a bytestr method,
so this no longer works, but
a) CFDataGetBytePtr(data) works and
b) The original reason for creating a CFData (converting a string to a
particular encoding) can be achieved much more easily in ruby 1.9 with
regular string methods, so my reason for creating an NSData is moot in
the first place.
Matthias
_______________________________________________
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel