OSX - Get a selector with list of systems fonts - macos

In my new app, I need the user to be able to click a selector, and pick any of their system fonts. How is this possible?

+[UIFont familyNames] returns an array of names of installed fonts.
Edit: Oops, I was in iOS mode. Here's the Mac OS version:
[[NSFontManager sharedFontManager] availableFontFamilies]

Related

Getting the default document editor toolbar in Mac Catalyst

I’ve just started porting my iPad app to the Mac using Catalyst. It’s a document editor and uses UIDocument. I’m trying to get the default toolbar behaviour for a document editor on macOS where there’s a dropdown to quickly name, tag, and move the document, and a subtitle that shows if the document has been edited. I can’t see any way to do this with Catalyst — is it possible?
Thanks,
Luke
A representative from Apple confirmed to me that this is not possible using Catalyst. In my opinion this makes Catalyst unsuitable for document based apps at the moment (Big Sur is currently the latest version of macOS).

OS installed fonts are not available in Storyboard dropdown

I am using xcode 10.1, recently I have updated mac os from 10.13.6 to 10.14.2 and after that the installed fonts are not available from storyboard; When I change the type to attributed text, installed fonts is showing in font box but in plain text only the system fonts are showing;
Is any way to fix this issue?
Install the fonts on your system first by double clicking it, or opening your FontBook app (double clicking should open the FontBook app)
Add font(s) to application bundle
Restart Xcode
:) hope this helps

Where are the iOS Device icons located?

When connecting an iOS device iTunes always shows the correct device icon.
Where are these icons located?
Thanks!
On OS X look in /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/ for icns files starting with com.apple.
Not an "official" source so don't use this in a Mac App Store app.
They are in /Applications/iTunes.app/Contents/Resources/DeviceIcons.rsrc
but I don't find RSRC editor for 10.x INTEL... anyways, I don't think you should just take apple's icons ;) [im no lawyer though]

Multilingual App for the Mac App Store - where to set languages displayed in Mac App Store?

I have a Mac Osx App to submit to the Mac App Store - it supports 8 languages.
Its written mostly in pure C++, i use my own localization handling, so
i DON'T use any localization strings provided by XCode.
Question: Where can i set these languages, so it gets displayed in the Mac App Store ?
Somewhere in xcode (in some .plist ?)
Somewhere in iTunes connect ?
Thanks for you help,
Roman
In your AppName-Info.plist file, add the key CFBundleLocalizations with an array of locale strings for your supported languages.
The full Info.plist documentation is here: https://developer.apple.com/library/ios/documentation/general/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html

App icon not displayed on MAC osX 10.5 for my app

I have created .icns using .iconset for my Mac app,containing all sizes of icon recommended by apple. But still I cannot see my app icon when I install and launch my app on Mac osX 10.5
Following Apple's current guidelines and using their latest toolset will give you icons that only work in newer versions of OS X. To get a set of icons that includes larger (#2x retina) resolutions and 10.5 compatible image formats, you need to use Uli Kusterer's oldiconutil.
Also, please see this related question--sometimes icon file sizes can be too large for 10.5, and require extra image compression.

Resources