FYI: a while ago I asked about a possible NSImage rotation regression
and Ken responded with:

I dropped the code below in a test app, and it seemed to work fine on 10.6
with 90 as the number of degrees.

Perhaps you could make a full test app that demonstrates the issue?

In doing that I found the problem before I even tried my rotation
code.

    NSString *path = [[NSBundle mainBundle] pathForResource:@"img"
                                                     ofType:@"cr2"];
    if (path) {
        image = [[NSImage alloc] initWithContentsOfFile: path];
    }
    [imageWell setImage: image];

That code, if compiled with the 10.5 SDK, needs rotation.   The same
code compiled with the 10.6 SDK is already rotated.  Trying to rotate
again does the wrong thing.

Example project that shows the issue (including the image as it came
from the camera) at http://www.snafu.org/imagebug.dmg

Set the active SDK to 10.6 and compile and run to see the image
rotated (without my rotation code being called).  Clean, set the
active SDK to 10.5, compile and run to see an unrotated image.

I've only run this code on 10.6 -- don't know what will happen if
run on 10.5.

I didn't see any mention of this in the documentation or release
notes.  Did I miss it?

/\/\arc

_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to