Re: Mouse position from NSEvent starts at (0, 1) ?
Re: Mouse position from NSEvent starts at (0, 1) ?
- Subject: Re: Mouse position from NSEvent starts at (0, 1) ?
- From: "Mathieu Coursolle" <email@hidden>
- Date: Fri, 18 May 2007 16:22:33 -0400
- Organization: Rogue Research
Humm...from what I see it seems to still be offset by
one pixel, but the cross is 2 pixels wide, so its harder to
see.
Is there a way to set the cross width?
Thanx!
>NSBezierPath *cross = [NSBezierPath bezierPath];
>
>NSPoint startVerticalLine = {x, y - 100};
>NSPoint endVerticalLine = {x, y + 100};
>
>[cross moveToPoint:startVerticalLine];
>[cross lineToPoint:endVerticalLine];
>
>NSPoint startHorizontalLine = {x - 100, y};
>NSPoint endHorizontalLine = {x + 100, y};
>
>[cross moveToPoint:startHorizontalLine];
>[cross lineToPoint:endHorizontalLine];
>
>[cross stroke];
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden