Simo Virokannas

Writings and ramblings

Category: Xcode

  • Adding resizing and resizable subviews to NSView

    If you’re adding a subview programmatically, you may run into having to constantly set all the resizing behaviors and/or anchors manually when all you really want to do is fill the whole available area based on two options: “stretch me to fit this box” or “stretch this box so I can fit”. This happens especially…

  • Symbolicate .crash logs – with whatever

    Ran into a situation where I had to get a Apple crash log symbolicated but the instructions say you’ll need to drop them to the device log viewer for that device. But in this case, I don’t have the device the log was from. Or it might not be connected at the moment. Or any…

  • Swift: as easy as 1, 2, 3…?

    Apple shook the developer community a few years ago with the release of Swift, a language that is “concise, expressive and lightning fast”. As a developer mainly working on Apple platforms, I decided to jump on it right away, trying to keep in mind there was going to be bumps in the road like there has been with any…

  • Xcode, NSOpenGLView, internal crash

    Xcode, NSOpenGLView, internal crash

    I’ve been encountering a frequent problem with Xcode interface builder with NSOpenGLViews – whenever you add one, connect it to a class, and touch something, interface builder starts crashing like mad. First, you try to save everything hitting continue, then you realize saving, restarting, loading, deleting the control, creating it again, nothing helps. You just…

  • MacRuby and (too) persistent objects

    If you’re starting with MacRuby and Xcode, you might stumble upon the same problem I did: If you deploy the project even once, those precompiled ruby object files (.rbo) stick to the deployment directory and you have to clean it up each time before testing any new code. Here’s a simple script you can put…

  • Xcode 4.0.2 and 4.1 distributed building

    Xcode 4.0.2 and 4.1 distributed building

    For some reason, the distributed building system in Xcode 4.x seems to be broken. You can search for distcc servers in your network, define them, turn on distributed building, but still it does everything on localhost. If you take a closer look at the build log, it says: setenv DISTCC_HOSTS localhost ..so can’t expect much…