yoink

With yet another month behind us (time flies recently, doesn’t it?), it’s time for another entry in my “What I…” series of blog posts. This time, somehow dental care made its way into it.

… Worked On

Website Update (click)
I felt the need to update my website again. On the landing page, you used to have to scroll to see all the applications available. I didn’t particularly like that. Also, the buttons just didn’t look good. Have a look:

eternalstorms.at before updateeternalstorms.at before its recent update

With the recent update, I moved everything around, chose a nicer, easier to read font (Helvetica Neue Ultra Light probably wasn’t the best choice) and removed the buttons:

eternalstorms.at after recent updateeternalstorms.at after the recent update

You can see how much space I saved solely by scaling the Eternal Storms Software logo and moving it off to the side (which makes it less obvious, sure, but a lot nicer to look at). What’s always important to me on a website is a way to contact the people in charge. I cannot say how much I hate (and I use that word with all its meaning) websites where I have to dig through to get some contact information. So at the top left, you have a button to contact me by mail or twitter and visit my Facebook group. At the right hand side, you can reach my blog, the press page and About/Legal information.
I also hate contact forms. Why hide your mail? From spammers? They’ll get to you anyway. Just give me your email and I can write you from within the comfort zone of my preferred email client. Nothing better than that.

A click onto an app icon or the app’s description will take you to the app’s page, of course:

Yoink's website after the updateYoink’s website after the update

I don’t want to overwhelm browsers with too much information up front. A page filled with text can easily scare people away.
So what you see at first is the icon, a short tagline and a Download and Purchase button. Below that, I thought it’d be a nice idea to feature some customer and press reviews to let potential buyers see what people who have used the app thought about it.
Below that, you’ll be greeted by a short screencast and the app’s full description and functionality. If you decide to skip the screencast, there’s a quick GIF of Yoink in action to give you the gist of it.

It took me a couple of days to settle on the colors of the buttons. I started with green and blue, then tried a light shade of purple and blue:

Screenshot of iWeb 25 08 2015 22 44 30
Screenshot of iWeb 25 08 2015 22 37 34

It’s nice, but taking the #ESSPurple background into account, neither the green, grey-ish purple or blue worked that well.
The buttons are much more identifiable as such than the previously used chalk-outline ones (see first screenshot).

For Yoink, I also started a new Quick Tips website, showcasing some lesser-known features.

Yoink Quick Tips Website (click)
It’s kind of a FAQ section. I often got eMails asking how to easily select all files inside Yoink or how to copy files out of Yoink instead of moving them.
Yoink’s Quick Tips website displays simple tricks like copying and selection, but more complex ones, too, like using Automator in conjunction with Yoink or adding files to Yoink from the Terminal/Shell.

Yoink 3.1 (to be released on September 3rd 2015)
I’ve been working on an update for Yoink which, most importantly, is now localized into additional great languages, like Japanese, Simplified Chinese and Korean (you can find the complete list in the release notes or on Yoink’s website).
Some localizations were “donations” by awesome users of Yoink (Korean, Portuguese (Portugal) and Italian), the others were done by professional localizers via iCanLocalize and BRlingo, which I can both highly recommend.
Besides being localized into new languages, the update provides a cleaner, less cluttered interface, many improvements and bugfixes.

Transloader 2.2.2 (iOS) (click)
Transloader for iOS received a bugfix update, fixing some minor stuff in its Today Widget and Action Extension and URL schemes. The Mac app hasn’t received an update yet.

Reach ZEN – Update (click)
I worked on an update for my cousin’s iPhone and iPad game Reach ZEN, fixing a couple of bugs and interface issues. Most importantly, In-App Purchases are working now 😛
In the game, you turn a cube with random numbers on it, selecting sides that add up to ten in under ten seconds. It’s thrilling and peaceful at the same time – go check it out 🙂

… Didn’t Work On

Swift Language
At some point, I’d like to get into Swift programming. But I don’t see the point in re-writing my apps to use Swift – it doesn’t really provide any use to users, other than knowing that something was built with the “new shiny”.
Hearing stories about how code stops working after an update to the Swift language doesn’t help things, either. When I write something, I want to be sure it works with the next release of the language it was written in.
That is not to say I’m not going to develop apps using Swift – but for now, I’m waiting for a release where I know that from that point on, things don’t change fundamentally and code keeps working over releases.

… Did

My girlfriend and I went to the dentist. For me, it was the first time in 15 years, easy (I know, I’m an idiot). But it went far better than I thought, considering the time span.
Three cavities (one has already been taken care of with two kind of drills and a filling) and one wisdom tooth that’s coming out the wrong way and needs to be surgically removed at some point (that X-Ray was quite shocking, to be honest).
Still, I’ve never had such a pleasant dentist visit. She was very comforting, careful and explaining what she did all the way through. The next appointment is in two weeks where the next tooth is getting fixed (by drilling, I hope).

… Downloaded

Angry Birds 2 icon, RovioAngry Birds 2 (click)
A worthy successor to the game that started it all. It’s entertaining and fun and pretty much sticks to what made the first game great.
I’m not very far into it due to lack of time, but it is a nice way to relax a little.

Pac-Man 256 IconPac-Man 256 (click)
I didn’t play much of it yet, but it’s Pac-Man – what can go wrong? 😛
I did get to the “Glitch” stage and died pretty soon afterwards and haven’t played it since – to be honest, I’d rather play Crossy Roads.

… Read

Swift – The Genius of Protocols (click)
This article provides a nice look into Protocols in Swift.
I’m not using Swift for anything yet and have only put my pinky toes into the vast sea that is this new programming language, but I do enjoy reading about what it has to offer.

Intro To GCD (Grand Central Dispatch) (click)
I’m familiar with how GCD works and I make extensive use of it, but it never hurts to read up on something you think you know. This is a multi-part series about GCD and if you’re a Mac / iOS developer, I suggest you check it out.

The increasingly long lives of old Macs (click)
Something I’m very thankful for, working on a retina MacBook Pro from 2012 and a 20’’ Apple Cinema Display from ca. 2004.
And OS X El Capitan will give it at least one more year of usage – including the new Metal framework (Macs starting from 2012 are supported, so my rMBP barely made it).

How Runic Games was Reborn After Torchlight: The Story Behind Hob (click)
The story behind a new game from Runic Games and how it deviates from previous games they made while having to deal with key people leaving the company.

… Listened To

Liftoff Podcast (click)
“Liftoff is a fortnightly podcast about space, the universe, and everything.”
I’m kind of into Astronomy, it’s a “hobby” of mine, if you can call it a hobby.
The podcast just started, they’re at episode 2 (episode 3 if you count the intro episode) and it’s been very interesting.

… Watched

Why CG Sucks (Except It Doesn’t) (click)
A short video about why we think CG in movies sucks, but it really doesn’t.

… Ate

Tomato PizzaSelf-Made Tomato Pizza with Garlic

… Went to See

My girlfriend and I were at quite a few places this month 😉

Schallaburg, Viking ExhibitionViking Exhibition at Schallaburg

Setagayapark in Doebling, ViennaSetagayapark in Vienna, Döbling.
Between Doebling, a district of Vienna and Setagaya in Tokio, there has been a year-long friendship and cultural agreement.
Out of that, this park was created. Planned by Ken Nkajima.

Haus des Meeres (House of the Sea)Haus des Meeres / House of the Sea, Vienna.

Aninite Convention SchwecahtAniNite Convention, Schwechat
Way more people (and cosplayers) than last year.

Read more

It was a bug I’ve been carrying along for quite some time in Yoink. But I finally found the culprit: I’m looking at you, OS X sandbox.

Webarchive opened after bug occurredA webarchive created with Safari, after a security-scoped NSURL bookmark was created for it.

The Bug and its Detection

As it happens (sadly), not I discovered the bug, but a customer and user of my app Yoink encountered it. The reason being, I rarely handle .webarchive files (if at all) – webarchive files are created when saving a website in Safari, for example – but one of Yoink’s users, Christoph, appears to have to deal with them regularly.

The bug itself is described fairly easily. You have a .webarchive file you’d like to move using Yoink. So you drag it onto the app and then move it from Yoink to the actual destination. Business as usual.
Only that now, instead of opening the webarchive in your standard browser when double-clicked, above’s warning is shown.

There’s two baffling things about this warning:

  1. It looks like you’re trying to launch an application instead of just a file (“from an unidentified developer”)
  2. The creator of the file seems to have changed. Instead of Safari, it now says “BugReport-WebArchivesAndNSURLBookmarks” (the app I submitted to Apple to demonstrate this issue)

Highly concerning, to say the least. To some people, it might even look like something fishy is going on.

Hunting Down the Bug

Seeing as .webarchive files are binary property lists (thank you, Michael Tsai (@mjtsai on twitter) for the correction), I tried other property list files (for example, .plist files), but none exhibited the same behavior.

Reproducing it was fairly easy. There’s one pre-requisite for it to appear: that in System Preferences -> Security & Privacy -> Allow apps downloaded from, either ‘Mac App Store’ or ‘Mac App Store and identified developers’ be selected.
Otherwise, Gatekeeper isn’t active and doesn’t react to the issue.

System Preferences - Security and Privacy Settings

At first I thought it happened when moving the file out of Yoink, since that’s where Yoink actually does something to a file – it moves it from one location to another – who knows what goes on behind the scenes there.

Going through the move-code line by line, commenting out stuff I thought could cause this, made no difference what so ever. Create a new webarchive, move it using Yoink, and get the warning again. Rinse and repeat.
With stuff like this, I get annoyed easily, so my patience usually goes out the window after a couple of alterations to the code.

It was only after the billionth time that I considered it might happen when a file was added to Yoink, not moved from Yoink.

Going through the same process as before, I went through the code line by line, trying different things.

With a recent update to Yoink, the app knows when a file is renamed or deleted in Finder, using GCD (Grand Central Dispatch) and its dispatch sources.
I believed the issue lay there, but after commenting out all of that code as well, it became clear it wasn’t the culprit.

In a fit of anger and a severe feeling of incompetence, I randomly picked at the code (I know, highly professional. But I’m using version control – all is well, right?).

To my surprise, when I removed the code responsible for saving Yoinks files over relaunches of the app, the issue went away.

Security-Scoped NSURL Bookmarks

For a sandbox’ed app to keep a reference to a file added by the user beyond relaunches, it has to use what is called a security-scoped NSURL bookmark.

Sandbox entitlements necessary for security-scoped bookmarks

They can be used if the corresponding entitlement (see above) is added to the app’s sandbox entitlements file.

There are two ways a security-scoped bookmark can be created – either with read and write access, or read-access only (NSURLBookmarkCreationWithSecurityScope or it plus NSURLBookmarkCreationSecurityScopeAllowOnlyReadAccess).

I don’t know why this causes the issue, but changing the bookmark creation options from read and write access to read-access only fixed the issue (and moving the file is still possible with Yoink). It definitely looks like a sandbox bug to me.

Why should an app-internal bookmark (mind you, it’s only a reference to a file, not the file itself, created from an NSURL object) write to and change the webarchive’s file so that it a) can’t be opened anymore and b) shows the bookmark-creating-app as its creator?

Bug Reporting to Apple

I reported this bug to Apple (rdar://21765077) with an example project you can download here, if you’d like to see for yourself. Feel free to dupe the bug with Apple’s Bug Reporter Tool – I’d appreciate it 🙂

Now all that’s left to say is thank you for your patience, Christoph. You reported this issue at the beginning of March 2015 and had to wait until now for it to be fixed (and still a little longer because I have to submit the update to Apple for release on the Mac App Store as well). I really appreciate your continued feedback on the app!

Correction

Thanks to Michael Tsai for pointing out on his blog that .webarchive files aren’t bundles, as I falsely stated, but binary property lists.

Read more

Yoink for Mac Usage Tip #9

The following explains how send screenshots directly to Yoink.
For more Usage Tips like this, click here.

I recently had a very interesting conversation with a customer of Yoink, Bogdan V. He wanted to make Yoink detect screenshots he created so they would show up in Yoink’s window.

Automator to the Rescue

I had the idea of using Automatorto create the screenshot and send it to Yoink. After experimenting around a little bit, I sent Bogdan a very rudimentary workflow (that could, if saved as an OS X Service, also be launched with a keyboard shortcut) and he immediately turned it into something awesome.

The Automator Workflow

This is the script of the workflow Bogdan came up with:

Automator Workflow Screenshot

You can download the Automator Workflow here (~59KB) (tested on OS X Yosemite 10.10.1).

Setting up the Service

  1. Download the Automator Workflow
  2. Unzip it and double-click on the resulting screencapture.workflow file
  3. In the dialog, select Install (except if you’d like to edit the script, then click on Open with Automator)
  4. It will be installed in your ~/Library/Services/ folder: Automator Service Path
  5. To confirm installation, in Finder, click on Finder in your menu bar, select Services and find Capture Screenshot to Yoink in the list: Service in Menu
  6. In your ~/Documents/ folder, create a folder titled Yoink (where captured screenshots will reside)

You have now successfully installed the Service to capture screenshots to Yoink. What you can do now is create a keyboard shortcut for it so you can more easily access this

Create a Keyboard Shortcut

  1. Launch System Preferences
  2. Click on Keyboard -> Shortcuts -> Services
  3. Find Capture Screenshot to Yoink in the list, under General:Screenshot System Preferences Keyboard Shortcuts
  4. Click on add shortcut and enter the shortcut you’d like to use to activate the service.

That’s It

That’s all there is to it. Now you can create screenshots that are then immediately available in Yoink for you to drag around.
If you find it useful, be sure to let me know on twitter (@eternalstorms) or by eMail – I’d appreciate the feedback!
Take care!

Update (October 14, 2015)

I got a bit of feedback on this – especially feedback from Pietro S. and Jeremy M. pushed me to update this post with a bit more information.
  • To make the Automator Script capture the entire display instead of just a selected portion, replace the line ‘ do shell script “screencapture -i ” & filePath ‘ with ‘do shell script “screencapture “ & filePath ‘ (removing the -i option to cause the selection)
  • Jeremy was so kind to provide an updated Automator Workflow that appended a date and timestamp to the screenshot’s filename; add two actions before the actual script (“Get Value of Variable”) with the variables Date and Timestamp and import them into the script – as in this screenshot:
    Screenshot of Automator, appending date and time to the filename
  • To use this Automator Workflow with the standard keyboard shortcut command-shift-4, you first have to deactivate the standard action in System Preferences -> Keyboard -> Shortcuts -> Screen Shots, or assign it a different keyboard shortcut: Screenshot of System Preferences

A ‘thank you’ goes to Jeremy and Pietro for the updated workflows.

Read more

10904415 10205535099647537 6831010725206999453 o

Apple is currently featuring Yoink on the Mac App Store, in the category “New Year, New You”, and it’s in great company with the very popular apps MindNode Pro, 1Password, OmniFocus and Evernote.
I couldn’t be more proud and humbled.

This certainly wouldn’t have happened without all of you, so

Thank you!

—-
My name is Matt, I’m the developer of Eternal Storms Software. If you’d like to comment, you can catch me on twitter here: [twitter-follow screen_name=’eternalstorms’ show_count=’yes’] or by eMail.

Read more