an apple class that defines objects that manage and coordinate the windows an application displays on the screen

-1
votes
0answers
23 views

How to make a Cocoa window flat above fullscreen window in Swift 4?

I want to make a window which can always be on the top of other windows, including windows in fullscreen display.Based on other questions (i.e. this one and another one) on SO, the strategy is to:...
0
votes
0answers
15 views

Closing NSWindow on cable disconnect

I am having an issue closing an NSWindow when the second screen is disconnected from my Mac.I am listening for NSApplicationDidChangeScreenParametersNotification and checking the number of screens ...
1
vote
0answers
22 views

NSWindow fixed position while switching between Spaces (Desktops)

Is it possible to fix position of NSWindow while switching between spaces?It is possible to use window?.collectionBehavior=[.canJoinAllSpaces] to share window in all spaces, but I want same effect ...
-3
votes
0answers
18 views

I want to minimize/hide nswindow when nscolorwell open and again show when color choosing done. [closed]

I want to minimize/hide nswindow when nscolorwell open and again show when color choosing done. i need it in swift4 code
0
votes
0answers
48 views

NSWindow centered horizontally while resizing

I'm trying to create a window that remains centered horizontally while the user is resizing, like an NSPopover window. As the window width increases, the frame.origin.x value decreases by 1/2, ...
0
votes
1answer
36 views

NSWindow scaled drawing in contentView

I'm creating a bare-bones window programmatically and I just need to draw some lines in its content view. The size of the area the lines fall in (worldBounds) needs to be scaled down and I assume I ...
-2
votes
0answers
22 views

How to open Mac app in hidden mode? [duplicate]

I want to run mac app in hidden mode. It means I won't want to show any UI part to the user but mac appshould be run?Thank you
1
vote
2answers
45 views

App window on top of all windows including others app windows

I like to have my NSWindow top of everything including other app windows. How this is possible?This is how my custom NSWindow looks like?override init(contentRect: NSRect, styleMask style: ...
0
votes
0answers
14 views

NSWindow launching with wrong size after setting contentViewController to NSTabViewController

I have an Xcode project with an NSWindowController whose contentViewController was set to a subclass of NSViewController. I recently removed the NSViewController subclass from the storyboard and ...
0
votes
0answers
21 views

NSWindow controlling multiple tabs

What is the best way to achieve multiple tab control within a single NSWindow akin to the Terminal App?The existing TabView & TabViewController don't seem to be able to achieve this but I'm not ...
0
votes
0answers
31 views

How do I dismiss OSX Character Picker Palette from code

I can present the Character Picker Palette (emoji) with:NSApplication.shared.orderFrontCharacterPalette(self)But I can't find any way to dismiss the Character Picker Palette from code when I'd ...
1
vote
1answer
67 views

Cocoa Window Not Showing on macOS Sierra

I have the following code to show a new window in my macOS app. This is within a completionHandler of a NSOpenPanel.let mainStoryBoard=NSStoryboard(name: NSStoryboard.Name(rawValue: "Main"), ...
0
votes
0answers
12 views

NSWindow closes itself after appearing [duplicate]

I display a NSWindow on the press of a button in my code like this. In some cases this works but in other cases it doesn't. It just opens for 1 sec and then closes itself. I'm trying to find out why ...
1
vote
1answer
66 views

Making NSView appearance vibrantDark

I'm currently learning Swift, and I followed this tutorial to create an NSWindow that inherits the vibrantDark property from the AppKit in Swift. The code I added to the WindowController.swift file is ...
0
votes
0answers
26 views

how should I use [NSWindow windowNumberAtPoint:belowWindowWithWindowNumber:]

I used the below code in Main methodint main(int argc, const char * argv[]) {@autoreleasepool {NSPoint mouse=[NSEvent mouseLocation];NSInteger windowNumber=[NSWindow ...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,