Hello, all.

I solved this problem for myself.

The reason was that the Tiger behaves differently from the Leopard.
On a Tiger ( MacPro 2 2.66Ghz DualCore Intel Xeon processor ), it needed a call setScalesWhenResized: .

So the whole code looks like :

NSSize imageSize;
activeCompanyImage = [[NSImage alloc] initWithContentsOfFile:activeCompanyImagePath];
imageSize = [activeCompanyImage size];
imageSize.width *= 0.3;
imageSize.height *= 0.3;
[activeCompanyImage *setScalesWhenReseizd*:YES]; // This line is additional for the Tiger
[activeCompanyImage setSize:imageSize];

I would like to report this.
Should it be a bug? Or just some note on the documentation can be enough?
_______________________________________________

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 [EMAIL PROTECTED]

Reply via email to