« June 2009 | Main | September 2009 »

August 2009 Archives

August 12, 2009

Xcode 3.1.2 crash is annoying

Here's a workaround for an annoying Xcode crash. Now Xcode is one of the few text editors, which doesn't have an autosave feature. Probably because it never crashes. That's because Xcode programmers are so good, they don't write bugs or whatever and never lose their code. Or they don't use Xcode to write Xcode ? Anyway...

  1. Create a new Xcode project.
  2. Add a new Objective-C class. Assume you want to create a category, so name it xxx+yyy
  3. Xcode will produce a template like this:
    //
    //  xxx+yyy.h
    //  Untitled
    //
    //  Created by Nat! on 12.08.09.
    //  Copyright 2009 __MyCompanyName__. All rights reserved.
    //
    
    #import <Cocoa/Cocoa.h>
    
    
    @interface xxx_yyy : NSObject {
    
    }
    
    @end
    
  4. Try to rename xxx_yyy to xxx (yyy) placing a ( open paranthesis after xxx
  5. If its just a conspiracy against me, nothing happens
    If I you are lucky, you get an exception
    If you are as unlucky as me, you crash

Workaround: Place the ) closing paranthesis after yyy first.

About August 2009

This page contains all entries posted to Nat!'s Web Journal in August 2009. They are listed from oldest to newest.

June 2009 is the previous archive.

September 2009 is the next archive.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type 4.25