# General OS X Questions

**URL:** <https://forum.xojo.com/t/general-os-x-questions/16035>\
**Category:** macOS\
**Created:** [April 26, 2014, 3:06pm UTC](https://forum.xojo.com/t/general-os-x-questions/16035 "2014-04-26T15:06:51Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Richard\_Summers](https://forum.xojo.com/user_avatar/forum.xojo.com/richard_summers/32/477_2.png) [@Richard\_Summers](https://forum.xojo.com/u/Richard_Summers)\
**Post date:** [April 26, 2014, 3:06pm UTC](https://forum.xojo.com/t/general-os-x-questions/16035/1 "2014-04-26T15:06:51Z")

</div>

Hi,  
I have a couple of questions which I thought you guys may be able to help me with:

1. What font does OS X use for buttons, text areas etc?

2. Is it possible to somehow tap in to the icons used by OS X - for example the print icon, folder icon etc? Or do I need to make my own?

3. I am looking for a SourceList Control - any idea which is the best to use?

Thank you all in advance.

---

<div class="post-metadata">

**Author:** ![Scott\_Crick](https://forum.xojo.com/user_avatar/forum.xojo.com/scott_crick/32/709_2.png) [@Scott\_Crick](https://forum.xojo.com/u/Scott_Crick)\
**Post date:** [April 26, 2014, 3:09pm UTC](https://forum.xojo.com/t/general-os-x-questions/16035/2 "2014-04-26T15:09:13Z")

</div>

1. The OS X font is Lucida Grande. However, in Xojo you can simply use “System” as the font (and 0 as the size) to get the system-defined font and size for each control.

2. Yes. MacOSLib is one way to do this. I believe the MBS plugin has functions for this as well. I’m sure there are others.

3. They exist, but I have no specific recommendations.

---

<div class="post-metadata">

**Author:** ![Tim\_Parnell](https://forum.xojo.com/user_avatar/forum.xojo.com/tim_parnell/32/161_2.png) [@Tim\_Parnell](https://forum.xojo.com/u/Tim_Parnell)\
**Post date:** [April 26, 2014, 3:19pm UTC](https://forum.xojo.com/t/general-os-x-questions/16035/3 "2014-04-26T15:19:16Z")

</div>

I’m quite partial to [FGSourceList](https://bitbucket.org/garrypettet/fgsourcelist) and have found it easy enough to modify as I need.

Also for your reference, [OS X Human Interface Guidelines: System-Provided Icons](https://developer.apple.com/library/mac/documentation/UserExperience/Conceptual/AppleHIGuidelines/SystemProvidedIcons/SystemProvidedIcons.html#//apple_ref/doc/uid/20000957-CH5-SW1)  
And the whole list: [NSImage Class Reference: System Entity Images](https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSImage_Class/Reference/Reference.html#//apple_ref/doc/uid/20000344-SW84)

---

<div class="post-metadata">

**Author:** ![Richard\_Summers](https://forum.xojo.com/user_avatar/forum.xojo.com/richard_summers/32/477_2.png) [@Richard\_Summers](https://forum.xojo.com/u/Richard_Summers)\
**Post date:** [April 26, 2014, 3:40pm UTC](https://forum.xojo.com/t/general-os-x-questions/16035/4 "2014-04-26T15:40:36Z")

</div>

Thank you Scott and Tim,  
I looked at the OS X HIG, but had no idea how to tap into them via XOJO, until you just recommended MacOSLib or MBS plugins.

Thanks.

---

<div class="post-metadata">

**Author:** ![Michel\_Bujardet](https://forum.xojo.com/user_avatar/forum.xojo.com/michel_bujardet/32/252_2.png) [@Michel\_Bujardet](https://forum.xojo.com/u/Michel_Bujardet)\
**Post date:** [April 26, 2014, 6:06pm UTC](https://forum.xojo.com/t/general-os-x-questions/16035/5 "2014-04-26T18:06:14Z")

</div>

> [@82908:@Richard Summers](#):
>
> 2) Is it possible to somehow tap in to the icons used by OS X - for example the print icon, folder icon etc? Or do I need to make my own?

There is a third way. When you get info for a document, select the icon on the top left corner and copy it (Right click/copy, Edit/Copy, Command-C). Then you can paste the icon in a graphics program and you have your icon material.

For icons from other programs, use Command-shift-4 to capture them.

---

<div class="post-metadata">

**Author:** ![Richard\_Summers](https://forum.xojo.com/user_avatar/forum.xojo.com/richard_summers/32/477_2.png) [@Richard\_Summers](https://forum.xojo.com/u/Richard_Summers)\
**Post date:** [April 26, 2014, 9:50pm UTC](https://forum.xojo.com/t/general-os-x-questions/16035/6 "2014-04-26T21:50:46Z")

</div>

Thanks Michel,  
The icons I was referring to though were icons which are used in toolbars etc (as opposed to app icons).

Thanks.

---

<div class="post-metadata">

**Author:** ![Michel\_Bujardet](https://forum.xojo.com/user_avatar/forum.xojo.com/michel_bujardet/32/252_2.png) [@Michel\_Bujardet](https://forum.xojo.com/u/Michel_Bujardet)\
**Post date:** [April 26, 2014, 10:15pm UTC](https://forum.xojo.com/t/general-os-x-questions/16035/7 "2014-04-26T22:15:56Z")

</div>

> [@83005:@Richard Summers](#):
>
> The icons I was referring to though were icons which are used in toolbars etc (as opposed to app icons).

All the icons like this one : ![](https://developer.apple.com/library/mac/documentation/UserExperience/Conceptual/AppleHIGuidelines/art/NSDotMac.jpg) can be obtained from these links :

[quote=82918:@Tim Parnell]Also for your reference, OS X Human Interface Guidelines: System-Provided Icons  
And the whole list: NSImage Class Reference: System Entity Images [/quote]

Go to the page, right click on the icon, and select Save image as…

You may need to resize them in an image editing program according to their use : menu, toolbar, etc.

Then you can drag it into your project and use it without additional tool.

Another approach is to use icons from one of the free collections available. For instance one of the 3800 included in  
[http://www.fatcow.com/free-icons](http://www.fatcow.com/free-icons)

---

<div class="post-metadata">

**Author:** ![Richard\_Summers](https://forum.xojo.com/user_avatar/forum.xojo.com/richard_summers/32/477_2.png) [@Richard\_Summers](https://forum.xojo.com/u/Richard_Summers)\
**Post date:** [April 26, 2014, 10:34pm UTC](https://forum.xojo.com/t/general-os-x-questions/16035/8 "2014-04-26T22:34:32Z")

</div>

Thanks Michel,  
I was just a bit cautious as to right-clicking and using the Apple images, due to any possible copyright infringements.

---

<div class="post-metadata">

**Author:** ![Michel\_Bujardet](https://forum.xojo.com/user_avatar/forum.xojo.com/michel_bujardet/32/252_2.png) [@Michel\_Bujardet](https://forum.xojo.com/u/Michel_Bujardet)\
**Post date:** [April 26, 2014, 10:36pm UTC](https://forum.xojo.com/t/general-os-x-questions/16035/9 "2014-04-26T22:36:45Z")

</div>

[quote=83010:@Richard Summers]Thanks Michel,  
I was just a bit cautious as to right-clicking and using the Apple images, due to any possible copyright infringements.[/quote]

Then go to the fatcow collection. It is quite extensive and often beautiful.

But I suppose if Apple provides a collection of icons through their framework and recommend them to be employed in their guidelines, using them for Mac OS programs is expected.

---

<div class="post-metadata">

**Author:** ![Richard\_Summers](https://forum.xojo.com/user_avatar/forum.xojo.com/richard_summers/32/477_2.png) [@Richard\_Summers](https://forum.xojo.com/u/Richard_Summers)\
**Post date:** [April 26, 2014, 10:56pm UTC](https://forum.xojo.com/t/general-os-x-questions/16035/10 "2014-04-26T22:56:54Z")

</div>

I agree - one would expect that is ok to use the Apple images, but I will need to somehow find out for sure, as I do not want any unexpected surprises ☹

---

<div class="post-metadata">

**Author:** ![Tim\_Parnell](https://forum.xojo.com/user_avatar/forum.xojo.com/tim_parnell/32/161_2.png) [@Tim\_Parnell](https://forum.xojo.com/u/Tim_Parnell)\
**Post date:** [April 26, 2014, 11:31pm UTC](https://forum.xojo.com/t/general-os-x-questions/16035/11 "2014-04-26T23:31:27Z")

</div>

Wasn’t going to post this earlier, but now that you’ve asked.

Michel’s way is not the way to go.  
First, the images in the documentation are shrunk. You’d have to upscale them if you right-click \> save. Ick.  
Second, the Apple images are for use within the Mac OS. If you use them in your app, you cannot present them on Windows (there’s legalese somewhere)

The way to present them is using the NSImageName constants. The secondary benefit to the official method is that you’d get the high resolution images automagically.

If you’re doing a Mac only build, I would recommend the NSImageName constants.  
Otherwise grab some toolbar icons either from a free set or purchase a set. The only downside to the fatcow icons is there’s no high resolution versions if you’re using them as toolbar icons (32px works as @2x for 16px though, so they’re okay for a SourceList!)

---

<div class="post-metadata">

**Author:** ![Michel\_Bujardet](https://forum.xojo.com/user_avatar/forum.xojo.com/michel_bujardet/32/252_2.png) [@Michel\_Bujardet](https://forum.xojo.com/u/Michel_Bujardet)\
**Post date:** [April 26, 2014, 11:34pm UTC](https://forum.xojo.com/t/general-os-x-questions/16035/12 "2014-04-26T23:34:12Z")

</div>

> [@83029:@Tim Parnell](#):
>
> the Apple images are for use within the Mac OS. If you use them in your app, you cannot present them on Windows

That is evident.

> [@](#):
>
> If you’re doing a Mac only build, I would recommend the NSImageName constants.

OK Tim. Thanks. Then the question becomes : _how_ does one use the NSImageName constants in Xojo ? Any code to share by any chance ? Anybody help ?

---

<div class="post-metadata">

**Author:** ![Tim\_Parnell](https://forum.xojo.com/user_avatar/forum.xojo.com/tim_parnell/32/161_2.png) [@Tim\_Parnell](https://forum.xojo.com/u/Tim_Parnell)\
**Post date:** [April 26, 2014, 11:42pm UTC](https://forum.xojo.com/t/general-os-x-questions/16035/13 "2014-04-26T23:42:56Z")

</div>

Poking through the macoslib git I see NSImage inside macoslib/Cocoa; so my guess would be in there. Looking even further inside I see them actually. There’s the network icon! So however one uses macoslib, call up Network() to see the network icon.

I haven’t used macoslib yet, so I don’t know how to do this off the top of my head - but I’m sure it’s in the manual somewhere 🙂

---

<div class="post-metadata">

**Author:** ![Tim\_Parnell](https://forum.xojo.com/user_avatar/forum.xojo.com/tim_parnell/32/161_2.png) [@Tim\_Parnell](https://forum.xojo.com/u/Tim_Parnell)\
**Post date:** [April 26, 2014, 11:46pm UTC](https://forum.xojo.com/t/general-os-x-questions/16035/14 "2014-04-26T23:46:07Z")

</div>

Making things up as I go, I’m looking at the examples, it looks like it’s as easy as NSImage.Network which would return the image. (after adding macoslib to your project)

---

<div class="post-metadata">

**Author:** ![Richard\_Summers](https://forum.xojo.com/user_avatar/forum.xojo.com/richard_summers/32/477_2.png) [@Richard\_Summers](https://forum.xojo.com/u/Richard_Summers)\
**Post date:** [April 26, 2014, 11:52pm UTC](https://forum.xojo.com/t/general-os-x-questions/16035/15 "2014-04-26T23:52:31Z")

</div>

I have not used MacOSLib yet, so I have absolutely no idea how to use it or what it exactly is.  
I will now look into it.

Thank you everyone for your input / ideas / recommendations - I am extremely grateful.

---

<div class="post-metadata">

**Author:** ![Sam\_Rowlands](https://forum.xojo.com/user_avatar/forum.xojo.com/sam_rowlands/32/265_2.png) [@Sam\_Rowlands](https://forum.xojo.com/u/Sam_Rowlands)\
**Post date:** [April 27, 2014, 12:42am UTC](https://forum.xojo.com/t/general-os-x-questions/16035/16 "2014-04-27T00:42:01Z")

</div>

> [@83013:@Richard Summers](#):
>
> I agree - one would expect that is ok to use the Apple images, but I will need to somehow find out for sure, as I do not want any unexpected surprises ☹

In your application it’s fine to use Apple images, however you can’t use them in the application icon or some other marketing related things.

The Retina Kit also has support for getting at the native OS X images [http://www.ohanaware.com/retinakit/](http://www.ohanaware.com/retinakit/)

---

<div class="post-metadata">

**Author:** ![Richard\_Summers](https://forum.xojo.com/user_avatar/forum.xojo.com/richard_summers/32/477_2.png) [@Richard\_Summers](https://forum.xojo.com/u/Richard_Summers)\
**Post date:** [April 27, 2014, 12:46am UTC](https://forum.xojo.com/t/general-os-x-questions/16035/17 "2014-04-27T00:46:23Z")

</div>

Sam,  
I was already going to purchase your Retina Kit in the near future 🙂

Do you remember where it stated that they can be used but not as app icons or in marketing?  
I would like to take a screenshot of official Apple permission - just as a precautionary measure 🙂

---

<div class="post-metadata">

**Author:** ![Sam\_Rowlands](https://forum.xojo.com/user_avatar/forum.xojo.com/sam_rowlands/32/265_2.png) [@Sam\_Rowlands](https://forum.xojo.com/u/Sam_Rowlands)\
**Post date:** [April 27, 2014, 1:01am UTC](https://forum.xojo.com/t/general-os-x-questions/16035/18 "2014-04-27T01:01:50Z")

</div>

It was a rejection letter from Apple, they rejected one of my applications for having Apple icons in the application icon. I then contacted Apple legal to see if I could gain permission… However it wasn’t granted, so I modified my icon.

I didn’t keep a copy of the letter and iTunes connect (the dashboard for managing apps on the app store) doesn’t seem to allow us access to history,

---

<div class="post-metadata">

**Author:** ![Richard\_Summers](https://forum.xojo.com/user_avatar/forum.xojo.com/richard_summers/32/477_2.png) [@Richard\_Summers](https://forum.xojo.com/u/Richard_Summers)\
**Post date:** [April 27, 2014, 1:11am UTC](https://forum.xojo.com/t/general-os-x-questions/16035/19 "2014-04-27T01:11:34Z")

</div>

No problem - thanks anyway.  
I will not use any Apple images (just for my own peace of mind).

Will still be getting your Retina Kit, as I need Retina images in my app.

Thank you.

---

<div class="post-metadata">

**Author:** ![Michel\_Bujardet](https://forum.xojo.com/user_avatar/forum.xojo.com/michel_bujardet/32/252_2.png) [@Michel\_Bujardet](https://forum.xojo.com/u/Michel_Bujardet)\
**Post date:** [April 27, 2014, 5:26am UTC](https://forum.xojo.com/t/general-os-x-questions/16035/20 "2014-04-27T05:26:31Z")

</div>

[quote=83071:@Sam Rowlands]In your application it’s fine to use Apple images, however you can’t use them in the application icon or some other marketing related things.  
[/quote]

Thank you for clarifying Sam 🙂

[quote=83077:@Richard Summers]I will not use any Apple images (just for my own peace of mind).  
[/quote]

Richard, when one of the most competent of us, Sam Rowlands, tells you it is OK to use Apple images, why do you persist on saying that you will not use them ? Sometimes, worse than fear, is fear itself …

[Next page](https://forum.xojo.com/t/general-os-x-questions/16035.md?page=2)
