An Epic Introduction to PyObjC and Cocoa

August 22, 2008 PyObjC is one of the most helpful projects I have ever used, but a number of individuals have been having trouble getting started with PyObjC on Leopard because the documentation is in a bit of a disarray. In particular, there didn't seem to be a comprehensive tutorial that could introduce a newcomer to all the important aspects of PyobjC, and that was completely up to date. Here is my attempt to fill that void. With a vengeance.

Filed under pythoncocoapyobjc

Assigning One To Many Relationships in CoreData

February 24, 2008 A few brief code snippets on how to add an instance of an entity to another entity's one-to-many relationship.

Filed under objccoredatacocoa

Notes on Cocos2d iPhone Development

October 3, 2008 An overview, some notes and a few snippets on Cocos2d development for the iPhone. Hopefully enough to help someone get started with development, but a few steps short of comprehensive.

Filed under cocoacocos2diphone

Epic PyObjC, Part 2: Adding a Library & Bindings

August 24, 2008 This is the second segment of the Epic Introduction to PyObjC tutorial series. This time we're looking at integrating the simple metaweb.py library into our project, as well as using Cocoa Bindings and an NSArrayController to make setting up an NSTableView as easy as possible.

Filed under pythoncocoapyobjc

Epic PyObjc, Part 4: Drag & Drop, Multiple Nibs

August 27, 2008 In this fourth segment of the Epic PyObjC tutorial we take a look at implementing drag and drop in two different ways, as well as using multiple nibs in one application. This is the final segment of Epic PyObjC that focuses on this project; the fifth one will be a collection of resources about continuing with Cocoa and PyObjC.

Filed under pythonos-xcocoapyobjc

Cocoa Drag and Drop text into the Dock Icon

August 7, 2008 I spent much too long today trying to figure out how to implementing drag and droping selected text onto an application's Dock icon (and its Finder icon as well), and will proceed to share this knowledge with you in the hopes that related searches will not leave their queriers quite as lost as I was.

Filed under objccocoapyobjc

Opening Files With Associated App in Cocoa

April 5, 2008 Recently I spent a while trying to figure out how to open files in my Cocoa app. Not just open them, but have the correct application launch with that file as an argument. I knew that Carbon achieved this with LaunchServices, but was unsure about the Cocoa equivalent to LaunchServices. But, it turns out to be quite easy to use. (Hint: its NSWorkspace.)

Filed under objccocoa

Epic PyObjC, Part 3: Browsing, Caching, Indicating

August 25, 2008 In this third segment of the Epic Introduction to PyObjC and Cocoa we spend some time in the standard application development workflow of iterating new idea from concept into feature. First, we have double clicking an entry open its page on FreeBase.com, then add disk based caching of results, and we end by adding an indicator to reassure users that the app hasn't frozen while retrieving data from Metaweb.

Filed under pythonos-xcocoapyobjc

Handling Files With CoreData

March 13, 2008 A problem that a young Cocoa developer is likely to run into is how to manage files using CoreData. Here is an in depth look at a clean way to handle it.

Filed under objccoredatacocoa

Epic PyObjC, Part 5: Resources and Farewell

August 27, 2008 This brief final segment of the Epic PyObjC tutorial series looks at a few statistics from the series, and also I recommend a few resources for moving forward.

Filed under pythonos-xcocoapyobjc

Deleting From NSOutlineView With the Delete Key

August 21, 2008 I was trying to figure out how to delete items from an NSOutlineView with the delete key (and without simply binding the delete key to an NSButton), and it took a bit longer than necessary to figure it out. Here is a simple example that will hopefully help out those in a similar situation.

Filed under cocoapyobjc