Tag Archives: cocoa

Don’t set NSPopupButton’s menu.items!

Since macOS 10.14 (Mojave) you can set the items of the internal NSMenu of a NSPopupButton in a Cocoa app using simple code like this: menu.items = […] But if your app also targets macOS 10.13 (High Sierra), don’t do … Continue reading

Posted in macOS | Tagged , , , , , , , , , | 1 Comment

Embedding custom Cocoa macOS views with xibs into frameworks

Ever thought of defining a custom Cocoa class (inheriting from NSView or a descendant), associate it with a xib to be able to define its UI with Xcode designer, and then put everything into a framework that you could reuse … Continue reading

Posted in macOS | Tagged , , , , , | Leave a comment

macOS milestone

As a Windows app programmer that wants to also develop native iOS and Android apps, one should learn to develop native macOS apps first! In my opinion it’s easier to learn standard Cocoa first, and only then Cocoa Touch (sharing, of course, the Foundation and other … Continue reading

Posted in Development | Tagged , , , , , | Leave a comment