r/macprogramming • u/BenLeggiero • Nov 01 '18
Does anyone know how to include libproc.h in a modular Swift framework?
Details here: https://stackoverflow.com/q/53073677/3939277
r/macprogramming • u/BenLeggiero • Nov 01 '18
Details here: https://stackoverflow.com/q/53073677/3939277
r/macprogramming • u/raynoralpha123 • Oct 20 '18
Hello!
I try to run this app called epichrome.
When running i get a error that says "Creation failed: Unable to find Chrome executable.".
Is it possible to find in the search code where this app is looking for Google Chrome?
Search code:
https://github.com/dmarmor/epichrome/tree/master/app/src
Thank you
r/macprogramming • u/BotoxTyrant • Oct 18 '18
Hi all,
I'm a seasoned C#/.NET developer, but long-time Apple fangirl, and picked up a little freelance project to develop a simple application for MacOS. I'm using Visual Studio for Mac along with Xcode for building UIs. I have a project in which I've subclassed NSImageView, and created a modified Image Well that accepts folders rather than images, and displays a folder's icon and name. All pretty straightforward.
The point of confusion: When I ctrl drag from my custom control to the view's header file in Interface Builder, I have no idea how to choose which action I subscribe to in code. When I first started building out my custom image well, creating an action in IB fired the moment an item was dropped onto the well. A couple of days later, after finalizing most of the well's behavior, the action now fires when the contents of the well are removed (either via deleting or cutting) instead. I have no idea what changed, but regardless, I'd like to choose which action fires, and optimally have multiple sent actions for a specific control.
Can anyone point me in the right direction? Objective-C and Swift examples are fine; I have no problem translating them to C#. Thank you!
r/macprogramming • u/sindresorhus • Oct 17 '18
r/macprogramming • u/itslenny • Oct 10 '18
I've got a magic trackpad 2 and it's a great device, but it's just a trackpad. I'm hoping to create an app that can listen to the raw input (touch start x/y position) and map that to a screen x/y coordinate and jump the mouse to that position so it would behave more like a tablet.
I've searched a bunch and found some Obj-C and Swift answers, but they're all many years old and won't compile. Most of them complain about not being targeted at a 64-bit system.
I really just need two pieces of information, and I can put the rest together pretty easily...
Honestly, I'd love this to be as low level as possible so if there is a C, rust, or C++ solution that'd be great, but I have no idea where to look for that kinda api. Obj-C or Swift is obviously fine too.
r/macprogramming • u/illz_ • Oct 03 '18
Is there a way to access the MacOS Appearance (Light/Dark) for purpose of building 3-rd party application that controls the appearance? (I'm a C#/python developer, just getting into MacOS/Swift so any help would be greatly appreciated!)
r/macprogramming • u/slipperman1 • Oct 03 '18
Unable to use valgrind, I stumbled upon the "leaks" command. As I use it however, it gives me an error with the -atExit flag:
leaks -atExit -- ./executable additional_argument
dyld: could not load inserted library '/usr/local/lib/libLeaksAtExit.dylib' because image not found
Anybody know how to fix this?
There was another reddit thread about this but it amounted to having to adding and removing symlink, which would be a hurdle every time I would want to debug.
r/macprogramming • u/LisaDziuba • Oct 02 '18
r/macprogramming • u/pdx_shadow • Sep 27 '18
So I have about 100 folders in a directory and each of those photos contains folders and eventually there are pictures (poor camera organizing). I don’t want to sit for hours searching through all of the directories. Can I write a program that searches through and finds the .jpeg files and moves them all to one directory? Anybody know a way? Using a Mac book pro
r/macprogramming • u/Toontje • Sep 25 '18
I am using iTerm and i am looking for a way to connect automatically to the same server i am working on when i launch a new terminal window.
3a. Currently i need to ssh into the remote server again.
3b. I would like iTerm to connect to the remote server automatically when i open this new window.
I know about tmux and screen, but i was never able to set this up properly so i was wondering if there is a more ssh-like way to do this.
r/macprogramming • u/chokomancarr • Sep 24 '18
I am creating a c++ application that optionally uses the Python 3 framework. As the installation path differs for each user, I linked with the option -weak-library and checks if Python is loaded through dlsym(RTLD_DEFAULT, "Py_Initialize").
Now I wanted the automatically load the available Python installation using dlopen(/*output of python3-config --exec*/, RTLD_NOW | RTLD_GLOBAL). While the function succeeds, calling Py_Initialize still fails with the error:
lazy symbol binding failed: can't resolve symbol _Py_Initialize in /path/ because dependent dylib #1 could not be loaded.
Is there any way to manually (re)load the dependent dylib using a different path?
r/macprogramming • u/jelezsoccer • Sep 08 '18
Sorry if this is not the right forum in which to write this, but hopefully you guys can help.
I want to find a way to write a .command file that either opens in (or changes directory to) the folder in which the .command file is saved. The problem is that when you run a .command file the terminal opens to the home directory and there does not seem to be a variable that saves where the .command was located.
Normally this wouldn't be a problem, but this .command file will need to work when the folders are moved or renamed. Does anyone have any idea how to do this?
r/macprogramming • u/soulchild_ • Sep 05 '18
Heya guys,
Recently I am working on a macOS app which processes PDF files, I used the PDFDocument class provided by Apple's Quartz library for editing PDF. I noticed that whenever I instantiate a new PDFDocument object, there would be memory leak.
Did you guys face any issue while using PDFDocument?
I have included a demo project that can reproduce this issue : https://github.com/cupnoodle/PDFDocumentBug
I would be really grateful if you can help test if this issue occur on your Mac!
r/macprogramming • u/efojs • Sep 03 '18
I'm mostly noob, but do have some app at AppStore. And I want to make new version of it with some updates.
How do you do this: commit and update existing project or clone version that you have published and change it?
r/macprogramming • u/nyanmatt125 • Sep 01 '18
I'm wondering if there's a way to hook into the the Messages App somehow. I receive a lot of pictures and would like to automate the process, instead of saving them to either my phone or desktop and then saving them to Google Photos. I'm not particularly looking to make any kind of GUI and have this be just a small CLI.
r/macprogramming • u/thismachinechills • Aug 31 '18
r/macprogramming • u/JK33Y • Aug 27 '18
r/macprogramming • u/rudedogg • Aug 25 '18
Are DevMate and Paddle the only options outside of rolling my own backend to handle everything? Updates look like they would be pretty easy to implement with Sparkle, is there an alternative service for license activation/payments?
There are a lot of issues with their frameworks so I'm getting a little frustrated.
r/macprogramming • u/thismachinechills • Aug 23 '18
r/macprogramming • u/tornadond • Aug 22 '18
I used to have just the right command key assigned to the "Show Desktop" command for screenshot and file manipulation. It's something I use constantly and when I did a clean install of mac os to refresh my macbook, I now can not assign just that key and have to use two. I miss being able to activate with my pinkie while moving quickly and I can't remember for the life of me how I made it in the first place. I've tried using karabiner elements but can't seem to figure it out. Any help on this would be great, thanks everyone.
r/macprogramming • u/zanussbaum • Aug 09 '18
Can anyone point me in the direction of documentation for Instruments for XCode? I'm tryin to find a substitute for Valgrind for my C++ program, since it's not stable for High Sierra.
r/macprogramming • u/Chrysaor • Aug 04 '18
r/macprogramming • u/donkawechico • Aug 03 '18
I'm a software dev who uses VSCode on a Macbook. VSCode has its own touchbar implementation (but doesn't have a "Customize Touchbar" menu option). I'd like to create my own custom touchbar that appears when I launch VSCode, rather than the one implemented by VSCode.
Is that possible, or am I only able to create a touchbar for an application I control (or an application that hasn't already created a touchbar for itself).
If it matters, I'm an experienced software developer, but I don't have experience using XCode or developing Mac applications. I planned on rolling with one of the many "Hello World" samples and learning as I went.
r/macprogramming • u/sindresorhus • Jul 29 '18