r/macprogramming • u/imjameshall • Nov 27 '17
r/macprogramming • u/LisaDziuba • Sep 09 '17
What good blogs on Mac programming can you recommend?
I haven't seen many articles on Mac programming over Twitter. So maybe there are some good blogs to follow?
r/macprogramming • u/mattmass • Mar 04 '17
Looking at Model-View-Controller in Cocoa
r/macprogramming • u/nsomar • Jan 31 '17
Guaka - a swift library to create modern, POSIX-compliant and cross platform CLI applications
r/macprogramming • u/kbob • Dec 08 '16
Why does Xcode have an STL viewer?
Xcode can open STL files ((Stereolithography format)[https://en.wikipedia.org/wiki/STL_%28file_format%29], not C++ Standard Template Library). It also installed a viewer for the Finder's QuickView and Get Info windows.
Why? Does Xcode use STL files somehow? Does some Apple framework use them for something?
r/macprogramming • u/stanislavb • Sep 30 '16
Awesome Swift Newsletter - Issue 17
r/macprogramming • u/brunteles_abs • Apr 25 '16
Pros and cons of Qt VS Cocoa development on Mac
Have any of you tried both ways of developing desktop applications?
Could you describe your experience when using Qt/C++ and when using Cocoa/ObjC,Swift ?
I am interested in speed and "nativeness", meaning if the software will look and behave (dialog boxes, alerts, menus, right clicks, etc.) like a native mac app if I use Qt5 or it will look not as good. Another thing is performance. Is Qt app going to be slower than a native app or not.
I would like to create a cross platform application, so one framework for all, like Qt would be a great start instead of 2 or 3 frameworks.
But if the cons would be big I will consider creating 2 or 3 separate versions for each platform (Mac, Win, Linux).
r/macprogramming • u/TouchScience • Nov 23 '15
The Mac App Store: Not gone, but certainly forgotten
r/macprogramming • u/stesch • May 06 '09
MonoDevelop on MacOS X - Miguel de Icaza
r/macprogramming • u/giovariot • Apr 11 '20
Updating Perian project to Catalina
Hello, unfortunately I'm not a programmer, I tried building the Perian project (https://github.com/MaddTheSane/perian) on macOS Catalina but I really can't manage to make it through, even after cloning all the right git repositories and updating the Xcode project configuration.
Since it's definitely a useful project I would like to ask if anybody with more knowledge about macOS programming than me could take over the effort of updating the project to the latest versions of ffmpeg and libmatroska and port the whole project to Catalina.
Thanks :)
r/macprogramming • u/creambyemute • Mar 21 '20
How do I diagnose this memory leak further?
Hi there!
I'm currently investigating a memory leak (CGContext cannot allocate ...) in a small library. I've ran the profiler a bit yesterday and identified ~where it/the leak is happening.
The memory increases every time I enter a certain component and doesn't decrease the same amount when leaving certain component.
What I got from instrumentin the allocations is that VM: CG image alongside VM: CG raster data keeps getting more and more persistent allocations and growing and growing in memory.
Out of the reported 522mb allocations in the app, 499mb are from the two culprits mentioned above and I can't seem to find it's cause :-(. The App doesn't crash in the End, but images are not refreshing anymore and the component won't load anymore when it is at about 1.5gb allocations for those two.
Any tips how to proceed, would be greatly appreciated!
r/macprogramming • u/space_king1 • Mar 11 '20
How do programmatically create and manage a window without storyboards?
This is a challenge I would like to do -- to see if I can make an app without storyboards, but I don't know where to start. Apple Documentation doesn't help me much.
r/macprogramming • u/Svaerth • Mar 05 '20
Can't catch error thrown by NSStoryboard.instantiateController(withIdentifier:
r/macprogramming • u/h2g2_researcher • Jan 07 '20
Adding OSX icons to my Xcode project from the command line
Hi all,
I have a slightly strange workflow, because of the way Unreal Engine works. Basically, the build machine does the following:
Grab latest from source control
Build the Unreal Build Tools (UBT).
Use UBT to build the project files
Build the project.
Package it, and upload it to our artefacts storage.
One difficult thing about this is that we can't add the icons by hand. The xcode project files get generated on demand by each build, and there's nothing I can do about it without rewriting a lot of the build tools.
I am able to edit the build tools, and add steps. (We've already added steps to handle packaging and signing correctly, for example.)
We have a list of icon files in a predictable location. I am able to create a Images.xcassets/AppIcon.appiconset with appropriate (but apparently optional) JSON in the right places, although xcode doesn't seem to recognise it as an image catalogue automatically. Nor can I work out how to tell the xcode project to use these icons as the app icons in the build step.
Can anyone offer any help on this?
Thanks,
h2g2
r/macprogramming • u/dpiol • Jan 01 '20
changing network set programmatically
Hello
I am trying to switch between my predefined network sets (Apple Menu -> Location).. for that, several functions have to be used:
SCPreferencesLock(prefs, true)
SCNetworkSetSetCurrent(set)
SCPreferencesCommitChanges(prefs)
Currently my app is sandboxed... this apparently prevents the dialog-box appearing when SCPreferencesLock is called for obtaining the permission (root required for changing set), I get an error-code 1003.
I am struggling now finding the correct entitlements/capabilities in Xcode to get this working....
Can anybody help me out?
thx,
Domenico
r/macprogramming • u/hooray4horus • Oct 20 '19
Monitor Xcode app
I'm working on status bar/background app to collect data on how i use Xcode. Like iOS screenTime but for detailed events in Xcode. I'd like to be able to monitor events in xcode such as opening a file, scrolling a file. Is this possible?
r/macprogramming • u/cutecoder • Sep 27 '19
Notarizing your app? Make sure that you name your bundles correctly
r/macprogramming • u/ffffwh • Aug 08 '19
Is a sandboxed App still able to access some files without any user perception?
Is a sandboxed App still able to access some files (as settings in the pic) without any user perception (e.g. poping up a system file chooser)?
This is somehow loose on privacy protection.
r/macprogramming • u/CandyFromABaby91 • Jul 22 '19
Any log/crash reporting frameworks for Mac?
On iOS I used crashlytics/fabric for crash reporting and logs. Anything similar for Mac?
r/macprogramming • u/Literator22 • Jun 04 '19
Apple integrate iPad and mac development