From: Duncan M. <du...@on...> - 2009-04-27 09:18:31
|
Sorry to have to ask this, but Sourceforge's mailing list search is so bad that I can't find an answer even if it exists. I'm trying to put a CGRect into an NSData rect_pt = CGRectMake(0, 0, image_params.width_pt, image_params.height_pt) data = NSData.alloc.initWithBytes_length(rect_pt, 16) ArgumentError: Expected either String/Array/ObjcPtr for argument #0 (but got OSX::CGRect). How do I create the ObjcPtr from a CGRect? Thanks in anticipation Duncan McGregor www.VelOCRaptor.com - Simple Mac OCR PS - Is there a better way of creating an NSData from a structure? |