mirror of
https://github.com/nickshanks/ResKnife.git
synced 2024-06-06 20:29:29 +00:00
Add a comment about why the resource data is mutableCopy'd.
This commit is contained in:
parent
53b735f144
commit
db738486d1
|
@ -81,6 +81,8 @@
|
|||
[resImage autorelease];
|
||||
resImage = [[NSImage alloc] init];
|
||||
|
||||
// -mutableCopy the data instead of retaining, so we don't get inverted pixels on reopening the resource
|
||||
// (since switching to NSCalibratedWhiteColorSpace)
|
||||
resData = [[resource data] mutableCopy];
|
||||
planes[0] = (unsigned char*) [resData bytes];
|
||||
NSUInteger plane0length = 0;
|
||||
|
|
Loading…
Reference in New Issue
Block a user