I i.yalovecky macrumors member Original poster 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 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