NSComboBox like point size in TextEdit

2020-01-29 Thread Lars C. Hassing via Cocoa-dev
I want my NSComboBox to behave like the point size combo in TextEdit: User places cursor in the combobox textfield, User presses arrow down - the menu opens User presses arrow down several times stepping down in the menu. User presses Enter to select the highlighted point size. - or user presses

Preventing app from being restored or saving info in "Saved Application State"

2019-11-10 Thread Lars C. Hassing via Cocoa-dev
I have developed two Cocoa apps, one launching the other helper app. If number two app crashes then macOS may ask the user if he wants to relaunch it, but it makes no sense launching it on its own, because it must be launched in a controlled manner and environment from the first app. I believe

Re: Thoughts on Cocoa

2019-10-04 Thread Lars C. Hassing via Cocoa-dev
On 4 Oct 2019, at 21.00, Jens Alfke wrote: The people I hear complaining about this are those who, like you, didn't move to Cocoa. Carbon was a _temporary_ transition API*. It was necessary when Mac OS X shipped in March 2001, but even though it wasn't yet formally deprecated, it was clear it