nspanel Questions
4
I'm working on a screenshot Mac app. I'm trying to rebuilt what happens when you press Cmd-Ctrl-Shift-4: the cross hair cursor and the selection rectangle for the screenshot.
I'm using a custom bo...
Chord asked 8/9, 2014 at 15:46
2
Solved
I have an app winth one window and one panel, attached to this window.
steps:
deactivate my app (app opened, but without the focus)
click on a button on panel (panel is focused now, but main win...
Initiation asked 23/2, 2011 at 10:24
3
Solved
I'm trying to add a little window that provides "quick input" from any place in the system to the main app.
The user could hit a hotkey, the window pops up, and floats above all other windows.
Fo...
1
Apple gives sample code for Creating PDF document. But It uses CFURLRef
NSPanel savepanel gives NSURL.
I can't convert NSURL to CFURLRef
path = CFStringCreateWithCString (NULL, filename, kCFSt...
Zest asked 21/4, 2016 at 21:45
3
I want to stop modal when the user clicks the red close button in NSWindowController.
In the NSWindowController, there are "OK" and "Cancel" buttons.
- (IBAction)okButtonClicked:(id)sender
{
[NS...
Municipal asked 4/12, 2012 at 3:28
1
I've created a simple Cocoa-Application in XCode 4.6 with an NSPanel instead of the default NSWindow. When I enable the Non-Activating
option and start the application everything works fine:
The ...
Demoralize asked 8/8, 2013 at 17:55
2
Solved
So I thought I had covered my bases, but apparently I'm missing a key step or two.
I have an NSPanel that is displayed (makeKeyAndOrderFront:) when an NSStatusItem is pressed. Things work great, b...
Lauter asked 5/10, 2011 at 2:22
1
Solved
It took me quite a bit of experimentation to clear up some confusion over Objective-C’s “ModalForWindow” language and, subsequently, how to use a modal session. Maybe the following tips will ...
Nadaba asked 12/2, 2011 at 16:21
1
Solved
Is it possible to give an NSView inside an NSPanel first responder status without giving the NSPanel key window status (making the main application window resign key)?
Thanks.
Penetrance asked 6/2, 2011 at 21:4
1
Solved
I need to create a HUD-like window programmatically when the user press on my main view. Here's the code I use, but I only get a standard window.
videoWindow= [[NSPanel alloc]
initWithContentRec...
1
© 2022 - 2024 — McMap. All rights reserved.