Questions tagged [nsalert]
126 questions
1
vote
1 answer
Keep Cocoa Window Minimized When App Displays NSAlert
I'm having difficulty determining how to keep an application minimized when it's running and it displays an NSAlert.
The short of it is that I have an application that is transferring data, and it displays an NSAlert when it finishes the transfer.…

P.M.
- 436
- 6
- 12
1
vote
0 answers
Using modal alert panel from modal session
I'm having troubles using a NSAlert panel when I am already inside a modal window. What happens is that when the alert panel is closed also the parent modal session is terminated.
The modal window is performed using NSModalSession in the usual…

Emerald Weapon
- 2,392
- 18
- 29
1
vote
2 answers
NSAlert in Fullscreen
I am creating a fullscreen app and am wondering if there is some way to make NSAlert go above the CGDisplayCapture that I created. Right now, the NSAlert is displaying behind the display capture. My main window is displaying just fine (after…

individualtermite
- 3,615
- 16
- 49
- 78
1
vote
1 answer
Is it possible to display a NSAlert/NSAlertPanel over a model window
I am displaying a model window using runModelForWindow,I have an button in this model window,whenever user clicks on this button,I need to display an alert panel without closing the model window.Is it possible?I have tried displaying NSAlertPanel,it…

Akbar
- 1,509
- 1
- 16
- 32
1
vote
1 answer
Passing NSComboBox value that is inside a NSAlert Sheet
I have a NSAlert Sheet that has a NSComboBox inside. How can i pass the combo box value when the user has pressed a button of the NSAlert?
code:
NSComboBox* comboBox = [[NSComboBox alloc] initWithFrame:NSMakeRect(0, 0, 150, 26)];
[comboBox…

Pedro Vieira
- 3,330
- 3
- 41
- 76
1
vote
2 answers
alertDidEnd: What is the Mono equivalent of Objective-C's void*?
I am trying to implement a method based on Cocoa's
- (void) alertDidEnd:(NSAlert *)alert returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo;
The problem is the parameter of the type void*. I don't know what the C# equivalent is for …

Andrew J. Brehm
- 4,448
- 8
- 45
- 70
1
vote
1 answer
Editing the row for duplicates using NSAlerts in NSTableView
I have a NSMutableArray which contains NSMutableDictionaries.I would like to display one string from this dictionary in a NSTableView.This string is unique among the objects.By default this has some known value.When an object is inserted and if…

Ram
- 1,872
- 5
- 31
- 54
1
vote
2 answers
Displaying NSAlert sheet modals one after the other
I want to display a Sheet and when user clicks "OK", show another sheet.
However, the moment "OK" is clicked the whole design becomes a mess, as if the first alert sheet hadn't had enough time to disappear.
This is the code I'm using for the…

Dr.Kameleon
- 22,532
- 20
- 115
- 223
0
votes
1 answer
NSAlert Over NSSavePanel
i am new in objective c , i want create alert over save panel to get confirm from user to overwrite exist file or not , like text editor when you save a file in a directory that have same file name alert show over save panel that ask to replace or…

Kosar
- 170
- 2
- 13
0
votes
2 answers
Modal NSAlert from NSOperation
I have a time consuming process which runs with an NSOperation.
I now need user's choice to choose between different subprocesses.
I need to stop the process until the user respond to the question.
How can I do this from an NSOperation?
Thanks

AP.
- 5,205
- 7
- 50
- 94
0
votes
5 answers
Block until NSAlert (shown as a modal sheet) is dismissed
I'm currently learning (by doing) objective-c by implementing a feature I felt is missing in the Titanium Appcelerator Desktop SDK: A way to do modal dialog with custom button texts and optionally to display them as a "sheet".
All is dandy and…

Tomas
- 1,399
- 1
- 14
- 19
0
votes
1 answer
Use different types of javascript alerts in macOS WebView based app
I'm creating WEB based app, running native on macOS, using embedded local HTML, JS and CSS files. I was before working with iOS and for similar purpose, I was using code bellow for presenting javascript alerts (alert type: alert, confirm and prompt)…

user21955191
- 19
- 5
0
votes
2 answers
NSComboBox into NSAlert
First of all I'm kind of new in Objc. (so try to explain me like. . . for dummies XD)
Well my question is: Is there any way to show a NSComboBox inside a NSAlert?
that's it!
I've check the documentations, an it says that it is possible to show a…

Ordiel
- 2,442
- 3
- 36
- 52
0
votes
1 answer
NSTextView doesn’t work when placed near the top of an NSWindow
Context
I have a window with a fullSizeContentView and a transparent titlebar and hidden titlebar.
I don’t even want the titlebar, but I had to enable it to get rounded corners on the NSWindow.
Problem
An NSTextView, when placed near the top edge,…

Noah Nuebling
- 219
- 2
- 11
0
votes
1 answer
Open alert box (NASlert) with a delegate and block all other windows?
Is there a way to open a NSAlert window, set a delegate for didEnd callback and while the alert is shown, all other windows should be "disabled" (can the window itself but not push any button or change any text)?

Erik Sapir
- 23,209
- 28
- 81
- 141