Questions tagged [makekeyandordertofront]

6 questions
9
votes
5 answers

How to order a window to front if you are not in the Application in Objective-C

Is there a way to make a "makeKeyAndOrderToFront" without beeing in the Application? If I am in Safari and in the Menu Bar there is a MenuItem to my App, after I press this, i want to show a window of my App in the Front (makeKeyAndOrderToFront…
ahmet2106
  • 4,957
  • 4
  • 27
  • 38
4
votes
1 answer

How to make active a window without a title bar

I can send the message makeKeyAndOrderFront: to make a window active. However, if I send this to a window without a title bar, it doesnt make it active. Is there any way to make a window without a title bar active?
hollow7
  • 1,506
  • 1
  • 12
  • 20
3
votes
0 answers

NSWindow disappears after deminiaturise

I have an NSWindow which is being shown using an NSWindowController. If I set the window level to anything but zero and then miniaturize and deminiaturize the window it disappears. The animation shows the window deminiaturizing but it disappears as…
BenJacob
  • 957
  • 10
  • 31
3
votes
2 answers

Why does my NSWindow only receive mouseOver events the first time?

I have an application where a borderless window is shown and hidden, using orderOut and orderFront. When it is visible, I want the it to become the key window when the mouse moves over it. So far I've done this: In awakeFromNib I have set its first…
2
votes
1 answer

Making NSBordlessWindow key and active when main application window is not active

I have a custom NSBorderlessWindowMask window in my application that I show when user taps a certain hot key. This window has a `NSTextField, that has to become first responder when the window shows up. This window is not a main window, but it can…
1
vote
1 answer

How to display NSWindow within the main window in Cocoa?

I want to show a new window when an user taps on a button in the main window, but when I called the separate window using makeKeyAndOrderFront, the window popped up far away from the main window. Here's what I wrote, in a subclass of…
Blaszard
  • 30,954
  • 51
  • 153
  • 233