Newest 'macos' Questions - Stack Overflow

Questions tagged [macos]

macOS (formerly known as OS X or Mac OS X) is the desktop operating system from Apple, found on Macintosh computers. Use this tag only if your question relates to using macOS APIs or macOS-specific behavior, not because you happen to run your code on macOS. Questions relating to using or troubleshooting macOS are off-topic, and belong to the Ask Different community.

0
votes
0answers
6 views

How to get the finished action on NSSlider?

There's a NSSlider with code as following - (IBAction)sliderChanged:(id)sender { NSSlider *slider = sender; NSInteger value = slider.integerValue; NSLog(@"%ld",value); } Because I set slider....
0
votes
1answer
11 views

How to use selenium to start a specified chrome browser

First, I have a chrome browser v75(this is the one I use every day). And I download an old version(v61.0) with which I want to deploy selenium crawler. But the question is each time when I try to run ...
0
votes
1answer
14 views

issue installing gems, etc. so I can use ruby on rails on a mac OS-X 10.11.4

I'm trying to get Ruby on Rails installed following this: https://gorails.com/setup/osx/10.11-el-capitan First, when I run 'rails new myapp' to test, it says I need node.js. But the main problem I ...
0
votes
0answers
9 views

Art-Net for Swift

Is there an Art-net Library for swift MacOS? I am trying to send DMX to control lights connected to a ArtNet -> DMX node. Could someone let me know of a library or another way to control this
0
votes
1answer
19 views

Can't connect to mysql inside docker on osx

Lately, my docker container is refusing connections. It has worked well in the past, this issue is new and has no explanation so far. Stopping and restarting the container has no effect. I can ...
0
votes
1answer
9 views

NSKeyedUnarchiver decodeObjectForKey: cannot decode object of class AMPathPopUpButton for key NS.objects

I got this error by trying to hack my way to adding UI elements to a popup on Xcode by just drawing UI components onto the view from Xcode's Storyboard: 2019-06-19 17:48:07.215803-0400 FileVacuum[...
-1
votes
0answers
12 views

[NSWindowController loadWindow]: failed to load window nib file 'NewWindow'

I am trying to bring up a window from within a macOS app as follows: void NewWindow::openWindow() { NSWindowController* instance = [[NSWindowController alloc] initWithWindowNibName:@"NewWindow"];...
0
votes
0answers
11 views

brew start an older version of mysql service, but how to connect to it?

So I installed mysql through brew, and I installed 2 versions on my Mac OS - mysql 5.7 mysql 8.0 I brew link 'ed to 5.7, so if I type mysql --version, it gives me distro 5.7.26. The problem is ...
0
votes
0answers
8 views

How to resolve '-bash: ssh -N: command not found' issue, when ssh to VM is actually working?

ssh forwarding from VM to localhost port throws 'command not found error' '-bash: ssh -N: command not found' I am trying to run my ipynb notebook files in VM by forwarding the port to localhost port....
0
votes
0answers
21 views

Small assembly (nasm) program crashes with Thread 1: EXC_BAD_ACCESS (code=2, address=0x10000101a)

Im trying to learn assembly (nasm) and i have a really hard time doing it. All documentation is very complicated. I have this little small program. everything worked well until i added the section ....
0
votes
0answers
16 views

How to reference an IBOutlet in an NSObject that is defined in a different NSObject

In a Mac Cocoa program, I have an AppController NSObject which performs most app functions and utilizes a MainMenu.xib file to conduct most interaction with the user. However, I would like to ...
1
vote
1answer
20 views

In Objective-C, How to initialize NSMutableArray with objects in another NSMutableArray using tableView reference

Developing for MacOS, I have an NSMutableArray namesArray[] that contains 3 String objects. namesArray[] is represented in a tableView, where user can select multiple cells, each cell represents a ...
0
votes
0answers
8 views

Extending tap/click-area on NSButton

I am trying to make the clickable area on an NSButton larger (macOS app). I have done it in iOS with UIButton like this: override func point(inside point: CGPoint, with event: UIEvent?) -> Bool {...
0
votes
0answers
21 views

What are the advantages of using the terminal (e.g. when using python) [on hold]

I can write some basic scripts in Python (like computing some scientific calculation with the result as on output and a graphical representation of the answer in Atom). However a "next level" of ...
-1
votes
1answer
11 views

How to fix a Bash issue in macOS

I'm here to show you my problem and to find a solution to a bash problem.Every time I launch my terminal under macOS, the first message that appears is "-bash: /Users/kiri/.profile: No such file or ...
0
votes
0answers
31 views

How to write a bash script to set up working environment?

I want to write a bash automation script to set up my working environment. Like every day I need to open 7 tabs of the terminal with each service running different command and I also open eclipse and ...
0
votes
0answers
3 views

How to solve “Bad CFBundleExecutable” validation error with app store and CocoaPods framework

I'm having several tricky problems with getting my Mac app with CocoaPods to pass validation into the Mac App Store. It works fine running locally but when I validate, it fails with these errors: App ...
0
votes
0answers
19 views

Why is “mkdir -pv” creating directories, but not showing the directories created? [on hold]

In mac terminal, when I enter mkdir -pv testdir/test1/test2/test3, the folder structure is created, but terminal does not return testdir/test1/test2/test3 as I expected. I've tried ls -la after the ...
0
votes
0answers
15 views

How to loop a sound with Sox?

I want to loop a sound with Sox, but I haven't seen any option to loop in the Sox Man. I tried to do an alias like this: function lplay { while (true) do play -v0.15 ~/'$1'; done } alias lplay ~/'$1'...
0
votes
1answer
31 views

Why does controlTextDidChange(_ obj: Notification) not work for label ? [macOS]

Why does controlTextDidChange(_ obj: Notification) not work for label ?. I want a function to be called when the stringValue of the label changes [macOS]
0
votes
0answers
18 views

Installing sprinboot cloud failing

I'm trying to install springboot cloud but i'm getting this error dnt know how to solve it. I managed to install spring successful spring --version Spring CLI v2.1.6.RELEASE spring install org....
0
votes
0answers
5 views

Xamarin.Mac NSView DrawRect not called despite NeedsDisplay

I am trying to create a view representing a vertical line that moves horizontally within another view. I have the following ViewController and custom view. using System; using System.Timers; using ...
0
votes
0answers
11 views

Swift/Cocoa - How to make floating window temporarily non-floating?

I'm creating a Mac App whose Window is controlled by a NSWindowController. Code of WindowController.swift: class WindowController: NSWindowController { override func windowDidLoad() { ...
1
vote
1answer
34 views

How do i fix this .bat file so it can run in macOS?

I have this .bat file created and working perfectly in Windows. When I tried to run this file from macOS terminal, it shows some error. I've already had JRE installed in my Mac. I also added: ...
-2
votes
0answers
22 views

How to show Action Extension menu programmatically in a mac app

NSSharingServicePicker is used for showing available share extensions.How can I show the available action extensions(like Markup)in a menu programmatically when a button is clicked in a mac app.
0
votes
0answers
35 views

Large image in email moved outside of div

Problem I have a weird bug with Mac's Mail Application displaying images in a email sent with Python. The HTML-formatted email I receive looks like in the picture below. As you can see the second ...
0
votes
0answers
10 views

Robotframework in Docker image :ConnectionResetError: [Errno 104] Connection reset by peer

I am running a robotframework tests inside a docker image based on Alpine linux, running the test suite on windows machine is perfectly fine, but running the same tests on Mac is causing that ...
0
votes
0answers
27 views

How to speed up getting file information of 10.000s of files

I need to collect a lot of data about picture and movie files in a directory (or a directory tree). This includes file name, date of creation and modification, filesize (and maybe later on additional ...
0
votes
0answers
275 views

Building for UIKit for Mac, but the linked framework 'XXX.framework' was built for macOS

I have created a new app which runs on both iPhone & Mac on Xcode 11 Beta 2 via Project Catalyst. For that I have 2 frameworks which are specifically build for 'macOS' & 'iOS'. Once I am ...
0
votes
0answers
28 views

Treat list of values in a single variable as multiple individual values (bash)

I want to read a variable's data and see if any of it's comma-separated data matches. Something like: allowed_versions={v1.0,v1.1,v1.5,v2.3} read -r -p 'Enter a version: ' version_inputted if [[ "${...
0
votes
1answer
29 views

Converting CAShapeLayer code from iOS to OSX

I've code that draws an arc in iOS and have converted it for use in macOS. Here's the iOS code that draws an arc. let circleCenter = CGPoint(x: self.frame.width / 2, y: self.frame.height / 2) ...
0
votes
2answers
36 views

How to remove python 2.7 from Mac OS X 10.14.5?

I realise that there is already an answer for the question but its for Mac OS X 10.6.4 and the python he installed was from "python.org". My python 2.7 has come built-in in my Mac so how do I remove ...
1
vote
0answers
22 views

Why am I having several errors from javac not finding any packages from javaFx? [duplicate]

I am starting to learn how to make GUI with JavaFx and I was following the basics to run a simple "hello world" program with the book 'JavaFx 9 by Example' from Carl Dea. But in the end, even ...
0
votes
0answers
15 views

CLion llvm debugging error 'warning: ignoring unknown option: -interpreter=mi2'

I am using CLion on MacOS Mojave to develop C++ projects and I've added a new toolchain which uses llvm on mac installed by brew. When I wanted to debug the whole project, I got the error from stdout:...
0
votes
0answers
14 views

Restore a deleted project from trash

I accidentally deleted the complete project from Xcode to trash. Does anyone know how i can restore the project? I moved all the files from trash into a new folder and opened the .xcodeproj file. I ...
0
votes
0answers
11 views

Mac OS terminal command “open” throws error -36 when specifying options

The "open" command works perfectly when I don't give it any options. Input: Dan$ open mongo.txt Output: Hello World If I use the "-e" option, it throws an error. Input: Dan$ open -e mongo.txt ...
1
vote
1answer
21 views

Tkinter (tkinter.Tk()) hangs on MacOS

Reference: MacOS 10.14, Python 3.6 from Anaconda, Spyder 3.3.4 I'm just getting started with tkinter in Python, and am trying to run a simple demo code found here from within Spyder. For completeness,...
-2
votes
0answers
7 views

npm run gulp returning errno 134

I am attempting to compile my scss but it keeps returning an error: npm ERR! code ELIFECYCLE npm ERR! errno 134 Below is the log file 0 info it worked if it ends with ok 1 verbose cli [ '/usr/local/...
1
vote
1answer
13 views

Node JS Error EADDRNOTAVAIL after changing my computer name on Mac

My node project was working properly on my Mac until I changed my computer name to something else. After changing the name from XXX to YYY, the following node error occurs: events.js:174 throw ...
0
votes
1answer
23 views

NSWindow crashes after close and reopen

I have created an NSWindow self.storeWindow = [[NSWindow alloc] initWithContentRect:NSMakeRect(100, 100, 800, 660) styleMask:NSWindowStyleMaskResizable|NSWindowListOrderedFrontToBack|...
0
votes
0answers
8 views

How to send Autogenerated confirmation mail and SMS for booking through macOS booking App in Swift

I am building a macOS Application like Make My Trip. It requires sending confirmation mail and SMS for booking through the macOS booking App. How do I send the autogenerated mail. Is there any API for ...
0
votes
0answers
10 views

How to shell rename bulk files without overwriting them from csv

I have a list of CR2 files from a shooting. The company has given me a CSV list with two columns. In the first one, there is the barcode of the product. In the second one, there is the filename I gave ...
0
votes
1answer
21 views

What is platform.system() output for MacOS?

I'm making a python application that is (hopefully) OS agnostic. This is being written in python3.7 and the GUI is being constructed from Tkinter8.6. I am attempting to use platform.system() for ...
0
votes
0answers
20 views

Can't start MAMP on MACOSX

I'm trying to start servers on MAMP, on MACOSX 10.14.3. I had run sudo /Applications/MAMP/Library/bin/apachectl start And got the error httpd: Syntax error on line 135 of /Applications/MAMP/...
0
votes
1answer
18 views

Downgrade conda on mac not permitted

I am working on mac, trying to downgrade python (from anaconda) from 3.7 to 3.6 and I get an error. on the terminal, I wrote: conda install python=3.6.8. Error: Executing transaction: failed ERROR ...
1
vote
0answers
8 views

how to close tcp close_wait connection by hand in mac

When I using this command in Mac OS terminal: netstat -n| awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}' I found too many close_wait connection and I want to clear by hand. SYN_SENT 13 ...
0
votes
0answers
7 views

NSTableView tab to next column dims other columns

I have a cell-based NSTableView. Because of my need to dynamically add new columns, and a few other auto-resizing things, it's a lot of work to convert it to a view-based one, so I am trying to avoid ...
0
votes
1answer
11 views

How to install hcitool in mac os terminal

Hello there guys i have been trying to use hcitool on mac os terminal but whenever i type hcitool scan the following error is appeared -bash: hcitool: command not found i have tried pip install hci ...
-1
votes
1answer
15 views

How to install IE browser on MAC machine?

How to install Internet Explorer 11 on MAC machine?
3
votes
1answer
50 views

Can a JAR be signed such that macOS will accept it?

I have an executable JAR which I wish my macOS users to execute from Finder without any command-clicks, or configuration of the system security. When the JAR is opened it Finder it presents the ...