cocoa Questions
4
Solved
How to find the Mac OSX serial number.
Sometimes it is required to get serial number of a mac, and you validate on that.
I needed the same, few years back, when I developed a plugin for OsiriX. I...
Longbow asked 16/3, 2013 at 15:41
1
I'm creating a silly utility under XCode 10.2.1, with a swift + ncurses template.
The compilation environment seems amazingly easy to setup:
1.- You import some Darwin.ncurses at the beginning of ...
Anette asked 22/5, 2019 at 15:15
3
Solved
Is it possible to hide dock icon programmatically on demand. I know one way by which defining property "Application is agent (UIElement)" in plist we make the cocoa app as user agent. But this resu...
Peremptory asked 14/5, 2010 at 9:10
2
I want to use date picker to select my date, I saw a good style in Reminder,
How do I obtain the style using NSDatePicker. Thanks for helping!
Xylotomy asked 16/10, 2014 at 1:19
3
Solved
How would one enumerate the installed browsers on an OS X system from a local app. I would like to build something like choosy, but different (long story). However, I would like to enumerate all in...
9
Solved
I have been stuck with this for a while and don't seem to get around this.
I am trying to read the contents of an URL as a string from an URL, But i get a weird
Error -> Error Domain=NSCocoaE...
4
Solved
I have a custom NSView called SurfaceView. It is the contentView of a NSWindow and it handles basic events like mouse click and drawing. But don't matters what I do, it does not handle the keyDown ...
Flexion asked 23/7, 2012 at 23:57
10
Solved
How to get a unique temporary file path using Swift/Cocoa on OS X?
Cocoa does not seem to provide a function for this, only NSTemporaryDirectory() which returns the path of the temporary directory....
5
I have an issue that tells me to install cocoapods using gem, but the flutter doctor couldn't find it.
[✓] Flutter (Channel stable, 1.22.4, on macOS 11.0 20A2411 darwin-arm, locale en-IN)
• Flutt...
2
Solved
I'm working on a macOS tool which uses Apple's Safari framework. When running in macOS 10.13, the tool links to and loads it from
/System/Library/PrivateFrameworks/Safari.framework
and all works...
Lillian asked 20/3, 2018 at 2:13
4
Solved
I'm just starting out with Cocoa development in Xcode, doing the hello world example. I'm up to step 6 of the section "runtime debugging", which is
Using the Step Over button in the debugger to...
3
Solved
One task of my program is to scan local wi-fi network for any devices/computers in same network. I found solution to get all working devices IPs, but did not managed to get names of them. I did not...
Blossom asked 15/10, 2013 at 8:6
2
Solved
I am struggling to simply create a folder in the users download directory on macOS with this code:
static func createFolderInDownloadsDirectory() {
let downloadsDirectory = FileManager.default.url...
Ectoparasite asked 6/5, 2018 at 13:45
6
Solved
I've developed an app for Mac OS X Lion using its new view-based NSTableView, but as I want to port the whole app to Snow Leopard I'm trying to figure out the best way to emulate such a tableview. ...
Basicity asked 22/10, 2011 at 15:10
2
Solved
is there any kind of notification available for when the desktop wallpaper is changed?
Thanks!
Coeternal asked 15/4, 2011 at 6:15
2
When I want terminate my app I am getting this massage from Xcode:
No error handler for XPC error: Connection invalid
I am using this code, it make the massage happen:
NSApplication.shared.termin...
5
Solved
I am trying to utilize incase-sensitive case for JSON response on NSDictionary as sometimes my response keys type varies, some are camel case, some are lowercase or other mixed combination. Is ther...
Topper asked 24/5, 2012 at 0:20
4
Solved
In Cocoa/AppKit, given a screen from [NSScreen screens], how can I find out if there's a full-screen app running on that specific screen? I'm mostly interested in apps that use the Cocoa APIs for f...
Vaudevillian asked 24/5, 2014 at 10:56
5
Solved
I want to create an osx/cocoa application on my mac, which does something very simple: Display a text string on my mac, with no background. Ultimately this will be a timer which displays as an over...
7
Solved
How can I get the computer's name on a Mac? I'm talking about the same name as the one you can find in System Profiler under "Software".
1
I would like to open FileZilla (ftp application) with an argument.
It is working with NSTask (aka. Process):
let process:Process = Process()
process.launchPath = appURL.path
process.arguments = [...
Formica asked 3/10, 2016 at 7:24
5
Solved
I have an NSView that contains an NSScrollView containing a CALayer-backed NSView. I've tried all the usual methods of capturing an NSView into an NSImage (using -dataWithPDFInsideRect, NSBitmapIma...
Numeration asked 23/12, 2010 at 5:45
2
I am using a custom mouseMove event in NSTextView to set the cursor to a pointer when it's outside the content insets. When it's inside the editable area, I'm calling [super mouseMove]:
- (void)mou...
Casia asked 3/11, 2020 at 11:58
4
Solved
How can I determine whether an NSSearchField/NSTextField has input focus?
4
Solved
I'm not sure what I'm doing wrong. Since I couldn't find any other questions (or even documentation) about this, it seems do be normally working without problems for other people.
I'm simply tryin...
Sanjuana asked 2/2, 2015 at 15:27
© 2022 - 2025 — McMap. All rights reserved.