I i.yalovecky macrumors member Original poster Feb 24, 2010 67 0 Mar 19, 2010 #1 With NSPoint I can use NSValue, but what i should to do under IPhone, initializer of NSValue don't allow CGPoint instead of NSPoint.
With NSPoint I can use NSValue, but what i should to do under IPhone, initializer of NSValue don't allow CGPoint instead of NSPoint.
K kainjow Moderator emeritus Jun 15, 2000 7,958 7 Mar 19, 2010 #2 valueWithCGPoint: and CGPointValue are defined in UIGeometry.h which you can use. This shows how to use NSValue with any struct: http://www.iphonedevsdk.com/forum/iphone-sdk-development/14601-retrieving-nsvalue.html
valueWithCGPoint: and CGPointValue are defined in UIGeometry.h which you can use. This shows how to use NSValue with any struct: http://www.iphonedevsdk.com/forum/iphone-sdk-development/14601-retrieving-nsvalue.html