Re: Looking at self = [super init].

2015-05-30 Thread Michael David Crawford
While in principle machine code implementations of subroutines can return from several different places, in practice they don't. Rather the compiler's code generator emits a branch instruction to the end of the subroutine, there there is an epilog. There are many good reasons for returning from

Re: How to get bold and plain fonts?

2015-05-30 Thread Roland King
A quick test (in Swift no less) suggests to me that this function just doesn’t work (TM). I get non-zero results for these 13 flag combinations (count of fonts + mask) and zero results for every other one of the 4096 combinations. 141 NSItalicFontMask 259 NSBoldFontMask 61

Re: How to get bold and plain fonts?

2015-05-30 Thread Graham Cox
On 31 May 2015, at 1:44 pm, Kyle Sluder k...@ksluder.com wrote: Here, you're asking for all fonts that consider themselves to be both bold and unbold. This set is going to be empty (unless you have a particularly broken font installed). Yeah, I just realised that though of course you’re

Re: Looking at self = [super init].

2015-05-30 Thread Alex Zavatone
Actually, i was typing by habit and included == instead of = by mistake. So, while you answered the question, you may have answered the wrong question. The question is not for if ( self == [super init]) It's if ( self = [super init]) How does that change your answer? On May 30, 2015, at

How to get bold and plain fonts?

2015-05-30 Thread Graham Cox
I’m using -[NSFontManager availableFontNamesWithTraits:] and I want to get the names of all of the fonts that have both a regular (plain) and bold option. I’ve tried various things, but this seems like it should work: NSArray* fonts = [[NSFontManager sharedFontManager]

Re: How to get bold and plain fonts?

2015-05-30 Thread Kyle Sluder
On Sat, May 30, 2015, at 09:42 PM, Graham Cox wrote: I’m using -[NSFontManager availableFontNamesWithTraits:] and I want to get the names of all of the fonts that have both a regular (plain) and bold option. I’ve tried various things, but this seems like it should work: NSArray*

Re: How to get bold and plain fonts?

2015-05-30 Thread Graham Cox
On 31 May 2015, at 1:44 pm, Kyle Sluder k...@ksluder.com wrote: you're much better off using NSFontDescriptor. So here’s what I’m trying to do. I have a “simple” UI that, among many other things, allows the user to choose a font for various things in a display. I want to keep the set of

[PSA] OSStatus.com — Error code lookup

2015-05-30 Thread Seth Willits
I can't tell you how many times over the years I've been frustrated by having to manually search multiple frameworks' header files to look up what the symbol or description for an error code value was. (I know 'macerror' exists, but I have never had any luck with it. I consider it useless.) I

Re: [PSA] OSStatus.com -- Error code lookup

2015-05-30 Thread Michael David Crawford
May I Bear Your Firstborn? Michael David Crawford, Consulting Software Engineer mdcrawf...@gmail.com http://www.warplife.com/mdc/ Available for Software Development in the Portland, Oregon Metropolitan Area. On Sat, May 30, 2015 at 9:38 PM, Seth Willits sli...@araelium.com wrote: I can't

[OT] Computer Employer Index

2015-05-30 Thread Michael David Crawford
I am building a list of links directly to the Jobs or Careers sections of computer employer websites. Not just for coding jobs but also hardware engineering, QA, project management, technical sales and the like. http://www.warplife.com/jobs/computer/ So far I've done this mostly in a very