Redrawed inset NSShadow on a Custom View using -setClip method
问题 I have and odd problem, related with the answer of this question: Draw an Inset NSShadow and Inset Stroke I use this code into the drawRect method of a custom view. I have exactly this: - (void)drawRect:(NSRect)rect { // Create and fill the shown path NSBezierPath *path = [NSBezierPath bezierPathWithRoundedRect:[self bounds] xRadius:4.0f yRadius:4.0f]; [[NSColor colorWithCalibratedWhite:0.8f alpha:0.2f] set]; [path fill]; // Save the graphics state for shadow [NSGraphicsContext