On 09/03/15 00:12, Patrick J. Collins wrote:
[_image lockFocus];
[[NSColor blueColor] set];
NSBezierPath *line = [NSBezierPath bezierPath];
NSPoint pointA = NSMakePoint(0, 0);
NSPoint pointB = NSMakePoint(self.bounds.size.width, 0);
[line moveToPoint:pointA];
[line lineToPoint:pointB];
[line stroke];
What am I doing wrong here?
If that's your real code, you need to call [_image unlockFocus] after you are
done painting the content of the image to balance the call to -lockFocus.
Regards
Markus
--
__________________________________________
Markus Spoettl
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com