this is supposed to be trivial… I think, but I can\'t find a way how to wrap a Struct variable into an NSObject. Is there a method to do so? If not, how would I
Use + (NSValue *)valueWithCGAffineTransform:(CGAffineTransform)transform;
From the docs: "Creates a new value object containing the specified CoreGraphics affine transform structure."
CGAffineTransform fooAffineTransform = CGAffineTransformMakeScale(.5, .5);
[NSValue valueWithCGAffineTransform:fooAffineTransform];
+valueWithCGAffineTransform has existed since iOS 2.0.