From: Laurent S. <lsa...@ap...> - 2007-07-14 18:54:38
|
Seems expected, since the method is declared to return a 'unsigned char *'. So, RubyCocoa is returning you a Ruby string. However, during the conversion, some data may be lost, if there is for example a 0 byte in the middle. I think that we should change the BridgeSupport metadata to mark this method returning a 'void *' instead, so that RubyCocoa will use an ObjcPtr. Laurent On Jul 14, 2007, at 8:45 PM, Sal Scotto wrote: > When i call bitmapData im getting a string back instead of a pointer > as per the docs > > is this a bug or am i using it wrong? > > bmp = NSBitmapImageRep.alloc.initWithData(tiff) > x = ObjcPtr.new(bmp.bitmapData) > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/_______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |