A Swiftlier Undo

A Swiftlier approach to using NSUndoManager under OS X 10.11 and iOS 9.

Read more...

Ads

I’ve been watching the recent discussion of (and revelations about) the state of the online ad industry lately. It’s clearly out of control. We know ad revenue is the only source of income for many of the sites that provide the content we love (or at least prefer to waste our time with). Without income, only children or those who have childlike minds would expect these providers to work as indentured public servants just so we can enjoy yet another wildly inaccurate (and poorly edited) listicle. Ads are obnoxious but paywalling everything would certainly stifle the free flow of information that makes the Web the wonderful boon to global civilization it is. So what’s the solution? I have a “modest proposal” (that doesn’t involve eating children).



Read more...

Is It A Disk Image?

A comment on an old StackOverflow answer of mine took me to task for a “partial answer” so I decided to improve it. Both posters wanted to know if a mounted device is a disk image. I wrote a simple routine using the DiskArbitration framework to test this given a file URL.



Read more...