Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about nsstatusbar

Read more about nsstatusbar

python (65.2k questions)

javascript (44.3k questions)

reactjs (22.7k questions)

java (20.8k questions)

c# (17.4k questions)

html (16.3k questions)

r (13.7k questions)

android (13k questions)

Questions - nsstatusbar

macOS statusBarApp without Storyboard create and close settingsWindow causing EXC_BAD_ACCESS

I have a MacOS cocoa statusBarApp without any Storyboard with main.swift file. The statusBarIcon shows up a Menu which presents a custom view with a button, which should open a settingsWindow - which ...
test-img

Relique R

macos

exc-bad-access

nswindow

programmatically-created

nsstatusbar

Votes: 0

Answers: 1

Latest Answer

NSWindow is released when it is closed. Before ARC this was a usefull feature. It can be switched off by setting the isReleasedWhenClosed property to false. But then the window stays in memory when it...
test-img

Willeke

Conditionally show either a Window or the Menu bar view SwiftUI macOS

I'm creating an app where it simply lives in the menu bar, however I'd like a full-sized normal window to pop up if the user is not logged in, I have made a little pop over window which is sufficient ...
test-img

Nathan

swift

appdelegate

nsstatusbar

Votes: 0

Answers: 1

Latest Answer

I think you can reference the demo Create a reference to an instance of NSWindowController in your AppDelegate class. private var mainVC: MainViewController? func showMainWindow() { if mainVC == ...
test-img

chenxi

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved