Custom Button Image Sizes?

Discussion in 'Mac Programming' started by Noisemaker, Nov 5, 2010.

  1. Guest

    Joined:
    Mar 13, 2009
    #1
    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?
     
  2. Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #2
    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.
     
  3. thread starter Guest

    Joined:
    Mar 13, 2009
    #3
    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?
     

Share This Page