Re: Getting displayName out of font file

2016-02-26 Thread Gerriet M. Denkmann
> On 27 Feb 2016, at 09:54, Ken Thomases wrote: > > On Feb 26, 2016, at 7:17 AM, Gerriet M. Denkmann wrote: >> >> On 26 Feb 2016, at 17:33, Ken Thomases wrote: >>> >>> On Feb 26, 2016, at 4:16 AM, Gerriet M. Denkmann

Re: Getting displayName out of font file

2016-02-26 Thread Ken Thomases
On Feb 26, 2016, at 7:17 AM, Gerriet M. Denkmann wrote: > > On 26 Feb 2016, at 17:33, Ken Thomases wrote: >> >> On Feb 26, 2016, at 4:16 AM, Gerriet M. Denkmann >> wrote: >>> >>> I have a file “Some Font.ttf” and I want to

Re: NSURLErrorKey vs. NSURLErrorFailingURLErrorKey

2016-02-26 Thread Quincey Morris
On Feb 26, 2016, at 18:12 , Jens Alfke wrote: > > Thanks, but I did read the documentation before asking. Then your question makes no sense. One of the URL keys is specific to NSURLErrorDomain, and that isn’t your error domain to use. That means your only standard choice

Re: NSURLErrorKey vs. NSURLErrorFailingURLErrorKey

2016-02-26 Thread Jens Alfke
> On Feb 26, 2016, at 4:48 PM, Quincey Morris > wrote: > > According to NSError documentation: Thanks, but I did read the documentation before asking. > On Feb 26, 2016, at 4:53 PM, dangerwillrobinsondan...@gmail.com wrote: > > It seems like the

Re: NSURLErrorKey vs. NSURLErrorFailingURLErrorKey

2016-02-26 Thread dangerwillrobinsondanger
It seems like the shorter one would be for a "click here to see more information or open this file URL" and the longer one is for "this URL failed to load". But it definitely deserves a docs bug. It might be one of those obscure things noted in some programming guide doc, but even if it is

Re: NSURLErrorKey vs. NSURLErrorFailingURLErrorKey

2016-02-26 Thread Quincey Morris
On Feb 26, 2016, at 16:33 , Jens Alfke wrote: > > What’s the difference between these? If I’m creating an NSError and adding a > URL to it, which one is preferred? According to NSError documentation: > • NSURLErrorKey > The corresponding value is an NSURL object. > > •

NSURLErrorKey vs. NSURLErrorFailingURLErrorKey

2016-02-26 Thread Jens Alfke
So, NSError.h declares NSURLErrorKey, as a userInfo key for the URL associated with the error. And NSURLError.h declares NSURLErrorFailingURLErrorKey, which appears to have the same purpose. Neither of these is deprecated, although there’s yet another constant (NSErrorFailingURLStringKey) that

Re: SCNView : setting "overlaySKScene" doesn't render anything

2016-02-26 Thread Gavin Eadie
The intelligence boosting power of posting a question strikes again. The problem was that in the Mac OS X Storyboard, the "Rendering API" of the SCNView was initialized to "unknown" when it needed to be "Metal" (curiously, "OpenGL" and "Default" don't render the overlay either). This is the

Re: Getting displayName out of font file

2016-02-26 Thread Eric Dolecki
I've used that dump fonts method before there was iosfonts.com to help. I haven't tried that in agrees but seems like it should do the trick.  Sent from Outlook on my phone. On Fri, Feb 26, 2016 at 11:23 AM -0800, "Alex Zavatone" wrote: Hopefully, one of these will

SCNView : setting "overlaySKScene" doesn't render anything

2016-02-26 Thread Gavin Eadie
I have struggled long and hard with this .. I think I’ve looked at 'everything' related on Google, but I’m still flummoxed. This is on Mac OS 10.11.3, build with Xcode 7.2, and this is what I think is the salient code. override func viewDidLoad() { super.viewDidLoad() let

Re: Getting displayName out of font file

2016-02-26 Thread Alex Zavatone
Hopefully, one of these will help. #pragma mark - Font Util // - (void)dumpFonts { for (NSString* family in [UIFont familyNames]) { NSLog(@"Font Family = %@", family); for (NSString* name in [UIFont fontNamesForFamilyName: family]) { NSLog(@"Font Name = %@",

Re: Getting displayName out of font file

2016-02-26 Thread Alex Zavatone
I've got this somewhere for iOS, I think. Give me a sec and I'll dig it up. On Feb 26, 2016, at 5:16 AM, Gerriet M. Denkmann wrote: > I have a file “Some Font.ttf” and I want to know the displayName of this > font, which might be “Some-Font” or “Nice Font” or anything else. > Or nil if this is

cycle windows

2016-02-26 Thread John Weeks
Is there a way to query the keyboard equivalent for Cycle Windows? Or maybe a notification of some sort that Cycle Windows has been triggered? Thanks! -John Weeks WaveMetrics, inc. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: Getting displayName out of font file

2016-02-26 Thread Gerriet M. Denkmann
> On 27 Feb 2016, at 00:37, Alex Kac wrote: > > Are you wanting this for any arbitrary font? I believe you can “install” a > font just for your application - and then use the NSFont methods to get it. > >

Re: Getting displayName out of font file

2016-02-26 Thread Alex Kac
Are you wanting this for any arbitrary font? I believe you can “install” a font just for your application - and then use the NSFont methods to get it. http://stackoverflow.com/questions/5283572/custom-font-in-a-cocoa-application > On Feb 26, 2016, at 10:31 AM, Jens Alfke

Re: Getting displayName out of font file

2016-02-26 Thread Gerriet M. Denkmann
> On 27 Feb 2016, at 00:31, Jens Alfke wrote: > > If this functionality exists it would probably be down in the CoreText > framework. Take a look there. > > —Jens As Ken Thomases kindly told me it does exist exactly there: CTFontManagerCreateFontDescriptorsFromURL.

Re: Getting displayName out of font file

2016-02-26 Thread Jens Alfke
If this functionality exists it would probably be down in the CoreText framework. Take a look there. —Jens > On Feb 26, 2016, at 2:16 AM, Gerriet M. Denkmann wrote: > > I have a file “Some Font.ttf” and I want to know the displayName of this > font, which might be

Re: Getting displayName out of font file

2016-02-26 Thread Gerriet M. Denkmann
> On 26 Feb 2016, at 17:33, Ken Thomases wrote: > > On Feb 26, 2016, at 4:16 AM, Gerriet M. Denkmann wrote: >> >> I have a file “Some Font.ttf” and I want to know the displayName of this >> font, which might be “Some-Font” or “Nice Font” or

Re: Getting displayName out of font file

2016-02-26 Thread Ken Thomases
On Feb 26, 2016, at 4:16 AM, Gerriet M. Denkmann wrote: > > I have a file “Some Font.ttf” and I want to know the displayName of this > font, which might be “Some-Font” or “Nice Font” or anything else. > Or nil if this is not a well-formatted font file. > I do NOT want to

Getting displayName out of font file

2016-02-26 Thread Gerriet M. Denkmann
I have a file “Some Font.ttf” and I want to know the displayName of this font, which might be “Some-Font” or “Nice Font” or anything else. Or nil if this is not a well-formatted font file. I do NOT want to install the font nor do anything with it. Short of reverse-engeneering the ttf format