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

NSDrawTiledRects Only Draws One Side


  • Subject: NSDrawTiledRects Only Draws One Side
  • From: Chris Tracewell <email@hidden>
  • Date: Tue, 13 Mar 2012 16:33:45 -0700

Using XCode 3.2.6, OSX 10.6.8 - GC is on


I have three rects I am trying to stroke on all four sides using NSDrawTiledRects however only the first side listed in my NSRectEdge list gets drawn. I'm using the boundsRect as the clippingRect but that shouldn't should it? I did experiment with insetting the bounds rect 10 points as you can see bleow just in case it was getting clipped but it makes no diff.

NSRectEdge theSides[] = {NSMinXEdge,NSMaxXEdge,NSMinYEdge,NSMaxYEdge};
CGFloat theGrays[] = {NSBlack,NSBlack,NSBlack,NSBlack};

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

Anyone have any suggestions?


--Chris
_______________________________________________

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: Jens Alfke <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: [Q] Why is the threading and UI updating designed to be done only on a main thread?
  • Previous by thread: Re: NSTextField not consuming keyDown events; How do I prevent super view from receiving those events?
  • Next by thread: Re: NSDrawTiledRects Only Draws One Side
  • Index(es):
    • Date
    • Thread