How to get a condensed San Francisco UIFont?

2015-10-07 Thread David Hoerl
I'd like to do is get a condensed - or better yet - a bold (semi-bold) condensed version of the "San Francisco" system font. What I propose to do is get a "starter" font: let font = UIFont.preferredFontForTextStyle(UIFontTextStyleHeadline) then get the font descriptor: let fd1 =

Re: How to get a condensed San Francisco UIFont?

2015-10-07 Thread Kevin Meaney
I believe the CoreText attributes should work. The attribute key of kCTFontTraitsAttribute with a value of TraitCondensed might do the trick. Kevin > On 8 Oct 2015, at 00:01, David Hoerl wrote: > > I'd like to do is get a condensed - or better yet - a bold (semi-bold) >

Re: CFBundleSupportedPlatforms issue

2015-10-07 Thread Rick C.
Thanks for the help but there is only one OS X Deployment Target for my entire app not one for each included binary. I really don’t see a place to change any settings for the binaries? > On 7 Oct 2015, at 2:24 PM, Charles Srstka wrote: > >> On Oct 5, 2015, at 2:40

Re: How to get a condensed San Francisco UIFont?

2015-10-07 Thread Jens Alfke
> On Oct 7, 2015, at 4:01 PM, David Hoerl wrote: > > then add a "condensed" attribute: > let fd2 = fd1.fontDescriptorByAddingAttributes[ the magic sauce ] I haven’t used this API, but from looking at the header, I would try: let fd2 =

Re: CFBundleSupportedPlatforms issue

2015-10-07 Thread Charles Srstka
> On Oct 5, 2015, at 2:40 AM, Rick C. wrote: > > Couldn't find platform family in Info.plist CFBundleSupportedPlatforms or > Mach-O LC_VERSION_MIN for myBinary Actually reading this again, before you bother with the Info.plist suggestion I just sent, why don’t you check

Re: CFBundleSupportedPlatforms issue

2015-10-07 Thread Charles Srstka
> On Oct 5, 2015, at 2:40 AM, Rick C. wrote: > > I have 3 pre-complied binaries inside of my project. They do have their own > entitlements files and they are codesigned but they do not have their own > Info.plist. What happens if you give them one? You can embed an

Re: NSSplitViewController : not in Interface Builder library?

2015-10-07 Thread Jerry Krinock
> On 2015 Sep 16, at 08:48, Bill Cheeseman wrote: > > I recently spent two weeks trying to get NSSplitViewController to work > programmatically in an application with nibs, without success. I got close, > and I concluded that it probably can be done, but I gave up

Re: NSTextField subclass needs cell subclass as well - how?

2015-10-07 Thread Quincey Morris
On Oct 7, 2015, at 21:08 , Graham Cox wrote: > > Radar time. If you’re going that route, it sure seems like ‘cellClass’ shouldn’t not be called — if it’s not possible to use it, then “deprecated” seems like a mis-description. But perhaps there’s a pattern of old

NSTextField subclass needs cell subclass as well - how?

2015-10-07 Thread Graham Cox
I have a NSTextField subclass that must currently also always have a NSTextFieldCell subclass internally (which in turn is needed only to provide a custom Field Editor when needed). In 10.10, cells are deprecated, though the cell is still there. I previously returned the custom class from

Re: NSTextField subclass needs cell subclass as well - how?

2015-10-07 Thread Graham Cox
> On 8 Oct 2015, at 11:50 am, Graham Cox wrote: > > I understand that cells are going away, but there currently doesn’t seem to > be a replacement for returning a custom field editor for a given text field > that doesn’t involve its cell. If there is, and I’ve missed

Re: NSTextField subclass needs cell subclass as well - how?

2015-10-07 Thread Graham Cox
> On 8 Oct 2015, at 2:33 pm, Quincey Morris > wrote: > > These statements sound a bit contradictory to me, but never mind. Well, they shouldn’t be, I daresay my usual inabilty to express these things is getting in the way. My interface is very dynamic,

Re: NSTextField subclass needs cell subclass as well - how?

2015-10-07 Thread Quincey Morris
On Oct 7, 2015, at 17:50 , Graham Cox wrote: > > I’d rather do it in code, because I have hundreds of these fields and it > would be a lot simpler to simply set the cell class once in code instead of > hundreds of times in IB. On Oct 7, 2015, at 20:13 , Graham Cox

Re: AVMetadataItem key

2015-10-07 Thread Jan E. Schotsman
On Oct 5, 2015, at 12:39 AM, Fritz Anderson wrote: On Oct 1, 2015, at 3:59 PM, Jan E. Schotsman wrote: I have an AVMetaDataItem with key = protocol? Int32(1851878757) as shown by the debugger How can can extract the value 1851878757 which is