Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
1 answer
27 views

Override NSManagedObject getter/setter to modify data

I have an NSManagedObject class that stores, among other things, a JSON string that comes from a WkWebView form. The form in the web view allows the user to add images to the form; when the form is ...
Markus's user avatar
  • 2,522
0 votes
1 answer
22 views

NSTableView Loses Focus After Calling editColumn [duplicate]

I have an NSTableView where the user clicks a button to add a new row. This goes to an IBAction that inserts an object in the NSArrayController and then uses editColumn:row:withEvent:select: to put ...
ThinkCL's user avatar
  • 119
1 vote
0 answers
73 views

uncaughtExceptionHandler failed to catch exceptions in objective-c on Mac OS

Hi and I'm working on handling exceptions in an app. My exception handler code is as below. In AppDelegate.h @interface AppDelegate : NSObject <NSApplicationDelegate> static void ...
Glider's user avatar
  • 35
-2 votes
1 answer
66 views

Is it possible to change behavior and attributes of the window of an NSPopover? [closed]

I am sorry - I do not understand what is missing in my question. I think it is fully loaded with all the needed details - but I'll try to appease the moderator here with more info. MacOS Cocoa app ...
Motti Shneor's user avatar
  • 2,170
0 votes
1 answer
58 views

How to open file with a specific Application Bundle?

I wrote an application in Qt for macOS & Windows. Now we want to communicate with that app from the browser using custom protocols. As it seems not possible to add this to Qt I tried to build a ...
RED SOFT ADAIR's user avatar
0 votes
0 answers
44 views

MacOS App: How do we launch bundled helper program from main application?

I would like to achieve simple thing but struggling for the whole day. :( I made a simple macOS app. In AppDelegate, applicationDidFinishLaunching, I would like to execute a helper program which is ...
Kyung Lee's user avatar
1 vote
1 answer
52 views

In what context can we use an unqualified #selector() expression in Swift?

The Swift equivalent of Objective-C's @selector() expression, is #selector(). In Xcode, the Objective-C, @selector() expression will offer autocompletions for all available selectors and the selector ...
F. S.'s user avatar
  • 13
0 votes
0 answers
51 views

I would like to know why I’m not getting IBOutlets connected in an App’s window

The results are pretty easy to replicate. Create a new Xcode project called TestWindow. XIB not storyboard. Objective-C Set the project’s scheme to turn off Metal API validation. Set Build Options to ...
ScottHa's user avatar
  • 31
0 votes
1 answer
28 views

initialization order with delegates and multiple view controllers is not working

I am trying to build a program where the MainController uses a delegate to pass data into a table inside TableViewController. I think I've initialized it correctly but LoadSN() does not trigger the ...
Hyperian's user avatar
  • 129
0 votes
1 answer
40 views

Delegate does not trigger method

I've looked at other delegate questions but there weren't any good existing answers. Everything should be set up properly, I can see my slider will change value in logs. For some reason, the delegate ...
Hyperian's user avatar
  • 129
0 votes
1 answer
68 views

No file access permission for Cocoa app but works with command line app

If I create a command line tool project and run something like: NSError *error = nil; NSFileManager *fileManager = [NSFileManager defaultManager]; if(![fileManager createDirectoryAtPath:@"/vault/...
Hyperian's user avatar
  • 129
1 vote
0 answers
39 views

NSOpenPanel allows a file's selection on the first invocation but not the second possibly due to an inode change

I have a java swing app that calls NSOpenPanel two times. The first time, it allows a file to be selected. When NSOpenPanel's [Open] button is clicked, the app changes the file that was selected such ...
Jeff Holt's user avatar
  • 3,200
5 votes
3 answers
224 views

How to prevent automatic State Restoration if the app was launched to open specific documents?

I have implemented State Restoration in my AppKit (Cocoa) app. That works. However: If the user opens the app by double clicking a document file saved by the app, then I want the app not to restore ...
Thomas Tempelmann's user avatar
1 vote
0 answers
106 views

How can I tell NSOpenPanel to respect the ⌘A (select all items) key binding?

MacVim is a macOS application with a file open dialog that calls NSOpenPanel with a simple view to show hidden files (see MMAppController.m's fileOpen method and Miscellaneous.m's showHiddenFilesView ...
Jeff Holt's user avatar
  • 3,200
0 votes
0 answers
87 views

sharingType property for NSWindow works but property value is not updated correctly

I am trying to cut off my window from the screenshot on macOS. It is working perfectly fine. But when I am trying to get its value, which I was setting for sharingType (NSWindowSharingNone or ...
Oleg's user avatar
  • 1,057

15 30 50 per page
1
2 3 4 5
1230