Re: drawing border of NSPopUpButtonCell drawInteriorWithFrame:inView:
Re: drawing border of NSPopUpButtonCell drawInteriorWithFrame:inView:
- Subject: Re: drawing border of NSPopUpButtonCell drawInteriorWithFrame:inView:
- From: Graham Cox <email@hidden>
- Date: Sat, 29 May 2010 20:34:18 +1000
On 29/05/2010, at 3:20 PM, Shane wrote:
> [path lineToPoint:NSMakePoint(cellFrame.size.width, cellFrame.size.height)];
Should be:
[path lineToPoint:NSMakePoint( cellFrame.origin.x + cellFrame.size.width, cellFrame.size.height )];
Or more succinctly:
[path lineToPoint:NSMakePoint( NSMaxX( cellFrame ), NSMaxY( cellFrame ))];
--Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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