NSDrawTiledRects Only Draws One Side
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