• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Mouse position from NSEvent starts at (0, 1) ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Mouse position from NSEvent starts at (0, 1) ?
      • From: Manfred Schwind <email@hidden>
References: 
 >Mouse position from NSEvent starts at (0, 1) ? (From: "Mathieu Coursolle" <email@hidden>)
 >Re: Mouse position from NSEvent starts at (0, 1) ? (From: Uli Kusterer <email@hidden>)
 >Re: Mouse position from NSEvent starts at (0, 1) ? (From: "Mathieu Coursolle" <email@hidden>)
 >Re: Mouse position from NSEvent starts at (0, 1) ? (From: "Joshua Pennington" <email@hidden>)

  • Prev by Date: Re: Mouse position from NSEvent starts at (0, 1) ?
  • Next by Date: Re: Core Data application types
  • Previous by thread: Re: Mouse position from NSEvent starts at (0, 1) ?
  • Next by thread: Re: Mouse position from NSEvent starts at (0, 1) ?
  • Index(es):
    • Date
    • Thread