• 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
NSBezierPath containsPoint question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSBezierPath containsPoint question


  • Subject: NSBezierPath containsPoint question
  • From: Dominic Edward Feira <email@hidden>
  • Date: Mon, 26 Apr 2004 23:54:43 -0400 (EDT)

I am trying to determine wether or not I am clicking on a line...below
is a snippet of code. Shouldn't tempBool equal YES? I can't for the
life of me figure out how to make this work.

NSBezierPath* aPath = [[NSBezierPath alloc] init];
[aPath moveToPoint: NSMakePoint(10.0, 10.0) ];
[aPath lineToPoint: NSMakePoint(50.0, 10.0)];
[aPath setLineWidth: 5.0];

BOOL tempBool = [aPath containsPoint: NSMakePoint(20.0, 10.0)];

Any help/suggestion appreciated.

-- Dominic Feira
email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: NSBezierPath containsPoint question
      • From: Allan Odgaard <email@hidden>
  • Prev by Date: Re: NSOpenPanel and JPG files
  • Next by Date: Re: NSOpenPanel and JPG files
  • Previous by thread: Broken "Quit" menu item in modal dialogs
  • Next by thread: Re: NSBezierPath containsPoint question
  • Index(es):
    • Date
    • Thread