Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Nov 5, 2010, 02:32 PM   #1
Noisemaker
Guest
 
Join Date: Mar 2009
Custom Button Image Sizes?

What is the image size needed to add a custom image to a round rect button for Mac?

Are there default back, forward, and refresh buttons similar to what iOS has?
Noisemaker is offline   0 Reply With Quote
Old Nov 6, 2010, 12:07 AM   #2
kainjow
Moderator emeritus
 
kainjow's Avatar
 
Join Date: Jun 2000
Quote:
Originally Posted by Noisemaker View Post
What is the image size needed to add a custom image to a round rect button for Mac?
That button normally doesn't have an image associated with it, but if you're going to add one, it looks like 14px would be the max height. Buttons don't have limits on their images though. Use whatever looks "right".

Quote:
Are there default back, forward, and refresh buttons similar to what iOS has?
Go here, then scroll down to the "Image Template Constants" section near the bottom, and you'll find a list of images that are built-in. They can be used with NSImage's imageNamed: method.
kainjow is offline   0 Reply With Quote
Old Nov 11, 2010, 01:15 AM   #3
Noisemaker
Thread Starter
Guest
 
Join Date: Mar 2009
Quote:
Originally Posted by kainjow View Post
That button normally doesn't have an image associated with it, but if you're going to add one, it looks like 14px would be the max height. Buttons don't have limits on their images though. Use whatever looks "right".



Go here, then scroll down to the "Image Template Constants" section near the bottom, and you'll find a list of images that are built-in. They can be used with NSImage's imageNamed: method.
Thanks for that link! I didn't realize there were so many button images available right off the bat. It definitely makes UI easier.

What is the "proper" button to use for those? Can I apply them via IB, or just through code?
Noisemaker is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Any way to set custom window sizes for different displays? Traverse Mac Basics and Help 10 Jul 6, 2014 08:40 AM
Cocoa Application: Setting Custom Background Image ajbudis Mac Programming 1 Jul 22, 2013 12:42 PM
Image file sizes reported wrong xArtx iPhone/iPad Programming 5 Jul 20, 2013 08:45 AM
Resolved: button suddenly does not look like its image straber iPhone/iPad Programming 2 Apr 6, 2013 06:13 PM
Change Mail's image sizes in Mail Forkjulle Mac Applications and Mac App Store 0 Mar 21, 2013 07:35 AM

Forum Jump

All times are GMT -5. The time now is 08:41 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC