iOS Security outline

Only a few pages into the iOS Security document released by Apple today, and already there’s a notable error.  It states: Apps can’t share data directly with each other; sharing can be implemented only by both the receiving and sending apps using custom URL schemes, or through shared keychain access groups. False, at least partially.… Read more

CMake & Xcode 4

I’ve wanted to try out a few little projects based around llvm/clang for a while now.  I grabbed the sources from svn last week, and have been perusing them, and their documentation, randomly.  Today I caught wind of the supposed support for Xcode (in the form of Xcode project files) via CMake.  “Awesome!”, I thought,… Read more

ToT Clang / LLVM in Xcode

It should be a trivial task.  It’s certainly an obvious goal, and I was quite perturbed to find no clear instructions, very little discussion of it at all, and a few awkward speed-bumps on the way.  But I did figure it out.  So here it is, for those lucky enough to find this before they… Read more

Collection literals

Last week Ted Kremenek added support for container literals and subscripting to Clang. This was noted in various places, though mostly only as a statement and maybe an example of the new container literals. But I wanted to know how they’re implemented. The answer is pretty easy to find. The relevant code follows a similar… Read more

iCloud documentation is crap

I’ve been trying to make use of iCloud in an iOS app over the last couple of weeks, and it’s been absolutely infuriating.  There’s a large volume of documentation, but it’s not very good, and it’s incomplete.  So let’s run down the laundry list: Entitlements Getting the entitlements to work is, in general, an incredible… Read more

Python

One good thing about working at Google has been that I’ve finally learnt Python. Properly. Which means I can whip up, in just a couple of minutes, a tested & documented script to, say, replace ~2,500 HTML files with redirects. So now anyone using an old link to any HTML page under https://homepage.mac.com/wadetregaskis will get… Read more

All UTIs for packages must inherit from com.apple.package

I had a devil of a time trying to get Xcode to recognise my standard Core Data UIManagedDocuments, given they are bundles, not flat files.  Turns out one of the keys was that your UTI must inherit from com.apple.package.  I had rather more sensibly (IMHO) inherited from one of the built-in database UTIs.  Silly me for… Read more