Create a subclass of an objective-C class
Likewise, but call super-class implementation of a method
Use a NS*Dictionary object.
Use an NSNetService class to look for servers using rendezvous.
Most of the following examples contain a buildapp.py
script that can
build an application. See Building applications for details how to invoke
these scripts. Some examples contain a Project Builder
project file;
simply double-click it and choose Build and Run
.
A simple class browser, demonstrating the use of NSBrowser (a "column view" hierarchical widget) and NSTableView.
A simple NIB based application. Start with this one. Also see the PyObjC tutorial.
A simple one-window demo showing how to custom drawing in a custom NSView. Additionally shows how easy it is to embed a view in an NSScrollView, as well as how to use an NSColorWell.
A more elaborate class browser; demonstrates NSOutlineView and NSTableView.
Demonstrates how to write an NSPreferencePane, for use in the System Preferences application. Requires a framework build of Python.
Another NSPreferencePane. This one can be used to edit the default environment for the current user. It also is a simple example of a localized application.
A reusable Python object browser, demonstrating the use of NSOutlineView as well as how to use an NSWindowController subclass to create a window from a menu action.
Basic demo that shows how to use a NSTableView.
A minimal Document-based text editor application.
A more complex NIB based applications. This is a document-based application. The code is a translation into pyton of an example project in 'Learning Cocoa' from O'Reilly
Another Project Builder Cocoa project. Quiries an XML-RPC enabled web server for the methods that it implements. Demonstrates a more advanced use of an NSTableView, how to make a toolbar as well as how to use multi-threading.
Another Project Builder Cocoa project, it also includes a buildapp.py
script. This shows an simple example of an MVC based application, that also
makes use of NSBezierPaths.
The application calculates the field pattern and RMS field of an antenna array with up to three elements.