• 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: drawing border of NSPopUpButtonCell drawInteriorWithFrame:inView:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >drawing border of NSPopUpButtonCell drawInteriorWithFrame:inView: (From: Shane <email@hidden>)
 >Re: drawing border of NSPopUpButtonCell drawInteriorWithFrame:inView: (From: Seth Willits <email@hidden>)
 >Re: drawing border of NSPopUpButtonCell drawInteriorWithFrame:inView: (From: Shane <email@hidden>)
 >Re: drawing border of NSPopUpButtonCell drawInteriorWithFrame:inView: (From: Seth Willits <email@hidden>)
 >Re: drawing border of NSPopUpButtonCell drawInteriorWithFrame:inView: (From: Shane <email@hidden>)

  • Prev by Date: Re: Using table view cells from nibs
  • Next by Date: Re: six things I wasn't able to do with Cocoa
  • Previous by thread: Re: drawing border of NSPopUpButtonCell drawInteriorWithFrame:inView:
  • Next by thread: Framework linking errors
  • Index(es):
    • Date
    • Thread