Re: Drawing issue with translucent borderless NSWindow, initial content half stays

2016-08-30 Thread Ken Thomases
On Aug 30, 2016, at 10:10 AM, Sean McBride wrote: > > I have a drawing bug in my app, and reduced it to a toy app. Basically, I > create an NSBorderlessWindowMask type window who's content view draws a > translucent rounded rect. Its only subview is an NSTextField

Re: Pixel-perfect migration from ATSUI to Core Text

2016-08-30 Thread Ken Thomases
On Aug 30, 2016, at 8:47 AM, Andreas Falkenhahn wrote: > >> That said, when drawing strings, there are the functions >> CGContextSetShouldSubpixelPositionFonts() and >> CGContextSetAllowsFontSubpixelPositioning(). Those can be used to >> turn off sub-pixel positioning of

Re: Swift changes in Xcode 8

2016-08-30 Thread Rick Mann
> On Aug 30, 2016, at 18:09 , Roland King wrote: > > >> On 31 Aug 2016, at 09:02, Rick Mann wrote: >> >> The problem I'm having is not the changes in the language, but in the iOS >> API. I can compile Swift 2.2 with a compiler flag. I can't make changes

Re: Swift changes in Xcode 8

2016-08-30 Thread Roland King
> On 31 Aug 2016, at 09:02, Rick Mann wrote: > > The problem I'm having is not the changes in the language, but in the iOS > API. I can compile Swift 2.2 with a compiler flag. I can't make changes to > support iOS 10 (and still build with Xcode 7, which is necessary for

Re: Swift changes in Xcode 8

2016-08-30 Thread Rick Mann
The problem I'm having is not the changes in the language, but in the iOS API. I can compile Swift 2.2 with a compiler flag. I can't make changes to support iOS 10 (and still build with Xcode 7, which is necessary for submitting to the App Store). Sent from my iPhone > On Aug 30, 2016, at

Re: Swift changes in Xcode 8

2016-08-30 Thread Quincey Morris
On Aug 30, 2016, at 17:20 , Jens Alfke wrote: > > IIRC you can’t conditionalize on the OS version No, you can, and it’s everything we always wanted for Obj-C. That is, you can test the OS version, and the compiler does proper deployment target checking. (It forces you to

NSUserNotificationCenter configuration mysteries

2016-08-30 Thread Graham Cox
I want to post a notification to the NSUserNotificationCenter when a certain event happens in my app (the user is able to toggle which events cause notifications). It’s working, but not how I want. I can’t find the documentation that tells me what I need to know. What I want: For EVERY event

Re: Swift changes in Xcode 8

2016-08-30 Thread Jens Alfke
> On Aug 30, 2016, at 4:41 PM, Rick Mann wrote: > > Here's the situation. I've got a Swift app that I've developed in Xcode > 7/Swift 2.2. Using the legacy compatibility mode, I can try build it in Xcode > 8, but unfortunately, a lot of the iOS API has changed (e.g.

Re: Swift changes in Xcode 8

2016-08-30 Thread Rick Mann
Yeah, I considered that. There are 30 issues reported before Xcode stops building. It's not really practical, and I can readily imagine a scenario where it would be completely unreasonable to ask that. Apple wants me to test Xcode 8 and ensure iOS 10 compatibility, but they sure make it hard

Swift changes in Xcode 8

2016-08-30 Thread Rick Mann
So, it seems there's really no practical way to develop with Xcode 8 and still be able to use Xcode 7 to submit my app. Here's the situation. I've got a Swift app that I've developed in Xcode 7/Swift 2.2. Using the legacy compatibility mode, I can try build it in Xcode 8, but unfortunately, a

Drawing issue with translucent borderless NSWindow, initial content half stays

2016-08-30 Thread Sean McBride
Hi all, I have a drawing bug in my app, and reduced it to a toy app. Basically, I create an NSBorderlessWindowMask type window who's content view draws a translucent rounded rect. Its only subview is an NSTextField that draws a number in a big font. When I display the window, all is well.

Re: Pixel-perfect migration from ATSUI to Core Text

2016-08-30 Thread Andreas Falkenhahn
On 29.08.2016 at 17:46 Ken Thomases wrote: > On Aug 29, 2016, at 9:55 AM, Andreas Falkenhahn > wrote: >> I'm migrating some code from ATSUI to Core Text. It's pretty raw stuff, i.e. >> it does >> all the layouting itself and only uses ATSUI/Core Text to draw single