Image Sizing
Image Sizing
- Subject: Image Sizing
- From: Charles Jenkins <email@hidden>
- Date: Wed, 31 Dec 2014 08:04:29 -0500
I have a non-retina Mac and no experience knowing what happens to graphics when used on a retina screen. I bought PixelCut's PaintCode as a Christmas present to myself so that my images could be made resolution-independent, but I'm having quite a bit more difficulty getting good results than I imagined, partly because of Cocoa issues.
First, am I right that there is no way to ask an NSToolbar or NSToolbarImage what size its graphic should be? In searching the documentation, I found it seems to say toolbar images come in two sizes, 32x32 or 24x24, and if they need to be different, the toolbar will pick the closest provided one and scale it. I hate hard-coding sizes like this, but am I right there's no other option?
Second, what about images in a Source View? Mine appear at 17x17 in the NIB. Are they always that size, even on a retina screen, or do I need to learn how to deal with the possibility of a changing size? I haven't yet been able to find any documentation on this at all, but that may only mean I used the wrong search keywords.
Finally, I asked the folks at PixelCut to add an option to have stroke drawn inside a path instead of centered on it. The advantage would be that your graphic and the frame that contains it could then be the same size. Right now the graphics need to be somewhat smaller than their frames, which can introduce problems when you make the graphics scalable. Someone from PixelCut responded that they are considering an inner-stroke option. If you happen to use PaintCode and think an inner stroke would be a good idea, please consider contacting their support department and adding your vote for the feature.
—
Charles
_______________________________________________
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