dataWithPDFInsideRect unlocks focus

Originator:peter
Number:rdar://21664715 Date Originated:03-Jul-2015 09:53 AM
Status:Open Resolved:
Product:OS X Product Version:10.10.4
Classification:Usability Reproducible:Always
 
Summary:
[image lockFocus];
	NSData* data = [self dataWithPDFInsideRect:self.bounds];
	NSImage* i = [[NSImage alloc] initWithData:data];
	[i drawAtPoint:NSMakePoint(0,height) fromRect:NSZeroRect operation:NSCompositeSourceOver fraction:0.6];
	[image unlockFocus];

Fails because dataWithPDFInsideRect/imageWithData breaks the focus lock.

Steps to Reproduce:


Expected Results:


Actual Results:


Version:
10.10.4

Notes:


Configuration:


Attachments:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!