Re: [Q] Status Bar icon and Tiger
Re: [Q] Status Bar icon and Tiger
- Subject: Re: [Q] Status Bar icon and Tiger
- From: JongAm Park <email@hidden>
- Date: Tue, 01 Jul 2008 14:15:23 -0700
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 (email@hidden)
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:
This email sent to email@hidden