Wednesday, May 28, 2008

Python and Cocoa

The existing MacLibre2 codebase is in Python, and the Cocoa API is an Objective-C API.  Fortunately there's a bridge called PyObjC, which allows the Python and Objective-C objects to talk to each other.  This does cause some weirdness, such as requiring certain method names to end in an underscore.

Implementation of the Cocoa interface is going a bit more slowly than I had hoped.  The official tutorial uses Interface builder 2.X, which is significantly different from the current version.

Currently I'm trying to get an NSOutlineView (for the list of installable packages) working.

Introduction

This blog is for status updates and other information about my GSoC 2008 project, MacLibre v3.  An abstract can be found on the official site here.

The first stage of the project, which I started Monday, is to rewrite the interface to use the Cocoa API's.  More on that later today.