NSBezierPath containsPoint question
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.