Z
Z
Zelgadis2014-07-24 02:50:04
Swift
Zelgadis, 2014-07-24 02:50:04

How to organize a Menubar application for OS X in swift (AppKit)?

I'm trying to make an application that is completely in the Menu bar. I took this as a basis. Rewrote everything in swift. This part works as it should. The problem is that when I started the actual application itself, I remembered that the application has 3 states: "I need to go", "I go", "the application is ready to work".
The first thing that came to my mind was to make three different NSViews and add the right one during "openPanel" as "subview" Didn't work - the first call always had a reference to nil instead of a valid NSView. However, all subsequent calls to openPlanel worked as intended.
CHADNT?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question