All pastes #212251 Raw Edit

Anonymous

public text v1 · immutable
#212251 ·published 2006-10-20 19:48 UTC
rendered paste body
		NSAffineTransform* xform = [NSAffineTransform transform];
		NSSize s = [crossOut size];
		[xform translateXBy:(s.width/2.0) yBy:(s.height/2.0)];
		[xform rotateByDegrees:90.0];
		[xform translateXBy:-(s.width/2.0) yBy:-(s.height/2.0)];
		[xform concat];
		
		NSPoint p = {(bounds.size.width/2.0),0};
		
		NSRect tmpRect = {NSZeroPoint, [crossOut size]};
		
		[crossOut drawAtPoint:p fromRect:tmpRect operation:NSCompositeSourceOver fraction:1.0];