alexrozanski / PXSourceList

Source List control for the Mac
Other
638 stars 76 forks source link

[NSImage setFlipped:] is deprecated and SHOULD NOT be used this way... #10

Closed kukosk closed 13 years ago

kukosk commented 13 years ago

i found this line in PXSourceList.m: [icon setFlipped:[self isFlipped]]; but it creates some issues when you try to use this image in other places ... the solution is to remove the line, and replace this line: [icon drawInRect:iconRect fromRect:NSZeroRect operation:NSCompositeSourceOver fraction:1]; by this one: [icon drawInRect:iconRect fromRect:NSZeroRect operation:NSCompositeSourceOver fraction:1.0 respectFlipped:YES hints:nil];

It would be perfect if you can use it like this in the next revision. thanks :)

alexrozanski commented 13 years ago

Hi kukosk,

Good catch! You're right, I shouldn't be using a deprecated method. All fixed now.