• 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: [NSBezierPath clipRect] do not do what is says!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [NSBezierPath clipRect] do not do what is says!


  • Subject: Re: [NSBezierPath clipRect] do not do what is says!
  • From: Eric Forget <email@hidden>
  • Date: Thu, 26 Feb 2004 17:21:01 -0500

>> clipRect:
>>
>> + (void)clipRect:(NSRect)aRect
>> Intersects the current clipping path, stored in the current graphics
>> context, with the rectangle referred to by aRect, and replaces the
>> current
>> clipping path with the resulting path.
>>
>> However, from my testing, it replaces the clipping without
>> intersecting with
>> the current one!
>
> Have you filed a bug?

Not yet because I was unable to make a small snippet of code to reproduce
it.

After some investigation, I've found that it was not clipRect fault but
[NSView translateOriginToPoint:] instead. In fact it appears that
translateOriginToPoint is resetting the clip rect. Is it a normal behavior?
I was doing the following to remove fuzzy lines at 1 point:

[self translateOriginToPoint:NSMakePoint(0.5, 0.5)];

Eric

___________________________________________________________________

Eric Forget Cafederic
email@hidden <http://www.cafederic.com/>

Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684>
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Removing fuzzy lines (was Re: [NSBezierPath clipRect] do not do what is says!)
      • From: Alastair Houghton <email@hidden>
References: 
 >Re: [NSBezierPath clipRect] do not do what is says! (From: John Randolph <email@hidden>)

  • Prev by Date: Re: smart file management
  • Next by Date: Re: ScalingScrollView with Sketch [workaround]
  • Previous by thread: Re: [NSBezierPath clipRect] do not do what is says!
  • Next by thread: Removing fuzzy lines (was Re: [NSBezierPath clipRect] do not do what is says!)
  • Index(es):
    • Date
    • Thread