Homepage
Open in app
Sign inGet started

David codes

My stories about programming with Swift and Cocoa

Go to the profile of David Garces
David Garces
Oct 25, 2016

Custom scientific measurements using the new NSMeasurement class

In WWDC 2016 Apple introduced a very useful Measurement class which you can use to define units and operations with pre-defined units or creating your own. In this article I share my journey in the creation of a custom…

Read more…
Go to the profile of David Garces
David Garces
Dec 13, 2015

An agent based (menu bar) app using storyboards

This is something that not many people have come across, but I’ve had the opportunity to participate in an open source project that was delivered as an agent / menu bar app in OS X using Swift and Storyboards, and would like to share my…

Read more…
Go to the profile of David Garces
David Garces
Oct 21, 2015

Launch another App from your Storyboard App

This is a short article about my small and quick app that execute another app. If you know the Bundle identifier of the external app you want to launch, you can easily test if the app is running, and launch it using NSWorkspace.sharedWorkspace().

Read more…
Go to the profile of David Garces
David Garces
Jun 30, 2015

How to create an action for NSToolbar in storyboards: a simple approach

It’s been a week since I posted a question in StackOverflow and so far no one has commented or responded at all. I decided to do a bit of Research and created a simple solution that doesn’t use the first…

Read more…
Go to the profile of David Garces
David Garces
Jun 25, 2015

NSToolbar in Storyboards, how does this work?

This article is about my first challenge whilst creating an OS X app using the latest Xcode (beta 7), Swift, and trying to create an action from a NSToolbarItem to modify views in the NSViewController that is attached to the NSWindowController of the…

Read more…
About David codes (swift)Latest StoriesArchiveAbout MediumTermsPrivacy