Author: rbritton

Portfolio for iPhone 2.0.2

Portfolio for iPhone 2.0.2 is a fairly small update, but it brings some important fixes. In addition to fixing a couple bugs that came with the 2.0.0 release, it also brings over the recent performance enhancements that have been made to the iPad version. Release Notes Fixes Double-tapping to zoom no longer triggers the toolbars to show. Tapping in an…

App Sandboxing Incompatibilities: Authorization Services

I’m currently working on a consulting job for a Mac OS X app. Since this app is distributed on the Mac App Store, it needs to adhere to the App Sandboxing requirement. One of the enhancements on the to-do list is a feature where system administrators can lock down the editing portions of the app, leaving normal users with only…

Electricity

I’m writing this from my iPad in a cold, dark house lit only by a few candles and a single LED lamp running off a battery. Earlier this week a record-setting windstorm blew through, uprooting massive pine trees and knocking out power for over 200,000 homes. Mine was one of those, and the weather station on the roof clocked a…

Floating Point Logic in Swift

Floating point logic is a sneaky problem in many programming languages, and Swift is no different. These innocent lines are completely incorrect: let d1 = 0.1 let d2 = 0.2 let d3 = d1 + d2 if d3 == 0.3 { //Do something } The contents of the if statement will never execute. Floating point numbers on computers are notoriously…

Supporting Ongoing Development

I have been developing Portfolio for iPad for over five years now. Like most apps, it has been steadily declining in revenue for a significant portion of its life. Unfortunately, the grim reality is that, at some unknown point in the future, it will become untenable to continue development on it because it is no longer bringing in enough revenue…

Portfolio for iPhone 2.0.1

The 2.0.1 update of Portfolio for iPhone is its iOS 9 bug-fixing update. Most of what applied to Portfolio 4.1.1 also applies to the iPhone version. Release Notes Fixes Fixed a potential crash when tapping an empty area in the gallery content manager. Worked around an iOS 9 change that caused the first thumbnail in the viewer to not display…

Studio Pro 2.3.0

Like Portfolio 4.1.1, Studio Pro’s 2.3.0 update was primarily a bug fix one. It included fixes for a variety of existing things and a few new ones introduced by iOS 9. Studio Pro shares many of the same loading options as Portfolio, so it also had to accommodate iOS 9’s App Transport Security, a new system-level policy that requires apps…

Portfolio 4.1.1

Every year brings a new iOS version, and every iOS version brings a number of subtle changes that break small portions of an app. 4.1.1 is Portfolio’s first update to address those. The most significant change with iOS 9 was the introduction of App Transport Security, a new system-level policy that requires apps to explicitly opt out of requiring outgoing…

Updating for App Transport Security

iOS 9 and tvOS both brought with them a new addition called App Transport Security. In short, it means that, in an effort to encourage wider use of https, vanilla http connections will be prevented from connecting unless an exception exists in the app’s Info.plist. Both Portfolio and Studio Pro provide a companion Mac-based loading app. It provides a RESTful…

Epitome: The iPad Pro and the App Store

The often-rumored and long-predicted iPad Pro made its debut at this year’s September event. It is, unfortunately, set to become the poster child of almost all that is wrong with the App Store. Unlike its predecessors, the iPad Pro is a device targeted at professionals and prosumers – it’s not the iPad Mini parents give their kids as a babysitter…

Correctly Drawing PDFs in Cocoa

Nearly every example available online for rasterizing a PDF document into an image on iOS or OS X is wrong. Most of those take this approach: //Document Loading CGPDFDocumentRef pdfDocument = CGPDFDocumentCreateWithURL(#URL#); CGPDFPageRef page = CGPDFDocumentGetPage(pdfDocument, 1); //Sizing CGRect mediaBox = CGPDFPageGetBoxRect(page, kCGPDFMediaBox); size_t width = (size_t) CGRectGetWidth(mediaBox); size_t height = (size_t) CGRectGetHeight(mediaBox); size_t bytesPerRow = ((width * 4) +…

An Objective-C Reporting Framework

Studio Pro has the capability of generating a paginated invoice, complete with all of the traditional invoice components. Recently, as the first of some new reporting options, I wanted to add the ability to generate an order summary separate from the invoice to make fulfillment easier. Problem is, the invoice generation code is very specific and not at all suited…