• 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: NSDrawTiledRects Only Draws One Side
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDrawTiledRects Only Draws One Side


  • Subject: Re: NSDrawTiledRects Only Draws One Side
  • From: Jens Alfke <email@hidden>
  • Date: Tue, 13 Mar 2012 17:27:04 -0700

On Mar 13, 2012, at 4:33 PM, Chris Tracewell wrote:

> NSDrawTiledRects(NSInsetRect(theVendorTextRect,10,10), theVendorTextRect, theSides, theGrays, 1);
> NSDrawTiledRects(theBillToTextRect, theBillToTextRect, theSides, theGrays, 1);
> NSDrawTiledRects(theShipToTextRect, theShipToTextRect, theSides, theGrays, 1);

The last parameter is 1, so you’re only telling it to draw one edge. It looks like you meant to specify 4. (The count parameter should match the sizes of the arrays you pass for sides and grays.)

—Jens
_______________________________________________

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


  • Follow-Ups:
    • Re: NSDrawTiledRects Only Draws One Side
      • From: Chris Tracewell <email@hidden>
References: 
 >NSDrawTiledRects Only Draws One Side (From: Chris Tracewell <email@hidden>)

  • Prev by Date: Re: NSTextField not consuming keyDown events; How do I prevent super view from receiving those events?
  • Next by Date: Re: String Constants the solution
  • Previous by thread: NSDrawTiledRects Only Draws One Side
  • Next by thread: Re: NSDrawTiledRects Only Draws One Side
  • Index(es):
    • Date
    • Thread