Don't have an answer to your issue (hard to understand what you are
finding incorrect...) but I wanted to note that the above code it more
difficult then it needs to be. The code could be as simple as the
following:
You can assign a float variable to an integer variable directly, no
need to use an NSString instance in between as you appear to be doing.
xVal = x;
yVal = y;
If you want a particular rounding behavior consider using rintf(),
roundf(), ceilf(), floorf(). You can find more information on those by
using "man rintf", etc. in the Terminal.
I cannot follow what exactly you are attempting to do but I believe
you should be able to transform the whole bezier path instead of
having to do each point (consider -[NSBezierPath
transformUsingAffineTransform:]. Or possibly avoid the use of bezier
path by using -[NSAffineTransform transformPoint:].
-Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden