• 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
NSBezier Artifacts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSBezier Artifacts


  • Subject: NSBezier Artifacts
  • From: Aaron Wallis <email@hidden>
  • Date: Sat, 26 Apr 2008 15:18:51 +1000

I've been having a fair few issues with NSBezier boxes lately (a.k.a boxes with rounded corners)

I've created a NSView subclass that contains the following code, then threw a few on a window with some controls over the top:
- ( void ) drawRect: ( NSRect ) rect
{
NSBezierPath* thePath = [NSBezierPath bezierPath];
[thePath appendBezierPathWithRoundedRect:rect xRadius:10.0 yRadius:10.0];
[thePath fill];
}


the results are horrid: http://skitch.com/d2kagw/kemd/window
there's loads of artifacts on the initial draw as well as each when the user interacts with the controls etc.


If I make them just plain rectangles - it works fine: http://skitch.com/d2kagw/kemr/window
- ( void ) drawRect: ( NSRect ) rect
{
	[NSBezierPath fillRect:rect];
}

Any ideas?
I just need to draw some boxes :D

Cheers!

________________________/Az.________
_______________________________________________

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: NSBezier Artifacts
      • From: "John C. Randolph" <email@hidden>
    • Re: NSBezier Artifacts
      • From: Jean-Daniel Dupas <email@hidden>
  • Prev by Date: Re: NSAlert
  • Next by Date: Re: [Moderator] Re: starting...
  • Previous by thread: Re: Cocoa-dev Digest, Vol 5, Issue 682
  • Next by thread: Re: NSBezier Artifacts
  • Index(es):
    • Date
    • Thread