1. Ronald Oussoren
  2. pyobjc

Commits

Just van Rossum  committed 704f0fc

Converted to reST. Cocoa examples link to the example directories; this
does just what you want in Safari: it opens the directory in the Finder.

  • Participants
  • Parent commits 9e5821b
  • Branches default

Comments (0)

Files changed (2)

File pyobjc/Examples/00ReadMe.html

View file
  • Ignore whitespace
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<title>
+PyObjC Examples</title>
 </head>
 <body>
-<p>This directory contains a number of examples for using the pyobjc module.</p>
-<p>A number of simple scripts that demo the core module.</p>
+<h2>PyObjC Examples</h2>
+<h2><a name="simple-scripts-that-demo-the-core-modules">Simple scripts that demo the core modules</a></h2>
 <ul>
 <li>subclassing-objective-c.py<p>Create a subclass of an objective-C class</p>
 </li>
 <li>rendezvous.py<p>Use an NSNetService class to look for servers using rendezvous.</p>
 </li>
 </ul>
-<p>And a number of Cocoa applications. These use the 'AppKit' package.</p>
+<h2><a name="cocoa-applications">Cocoa applications</a></h2>
 <ul>
-<li>ClassBrowser<p>A simple class browser, demonstrating the use of NSBrowser (a &quot;column view&quot;
+<li><a href="ClassBrowser">ClassBrowser</a><p>A simple class browser, demonstrating the use of NSBrowser (a &quot;column view&quot;
 hierarchical widget) and NSTableView.</p>
 </li>
-<li>CurrencyConverter<p>A simple NIB based application. Start with this one. Also see the PyObjC
+<li><a href="CurrencyConverter">CurrencyConverter</a><p>A simple NIB based application. Start with this one. Also see the PyObjC
 tutorial.</p>
 </li>
-<li>DotView<p>A simple one-window demo showing how to custom drawing in a custom
+<li><a href="DotView">DotView</a><p>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.</p>
 </li>
-<li>iClass<p>A more elaborate class browser; demonstrates NSOutlineView and NSTableView.</p>
+<li><a href="iClass">iClass</a><p>A more elaborate class browser; demonstrates NSOutlineView and NSTableView.</p>
 </li>
-<li>PrefPane<p>Demonstrates how to write an NSPreferencePane, for use in the
+<li><a href="PrefPane">PrefPane</a><p>Demonstrates how to write an NSPreferencePane, for use in the
 System Preferences application. Requires a framework build of Python.</p>
 </li>
-<li>EnvironmentPrefs<p>Another NSPreferencePane. This one can be used to edit the default environment
+<li><a href="EnvironmentPrefs">EnvironmentPrefs</a><p>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.</p>
 </li>
-<li>PythonBrowser<p>A reusable Python object browser, demonstrating the use of NSOutlineView
+<li><a href="PythonBrowser">PythonBrowser</a><p>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.</p>
 </li>
-<li>TableModel<p>Basic demo that shows how to use a NSTableView.</p>
+<li><a href="TableModel">TableModel</a><p>Basic demo that shows how to use a NSTableView.</p>
 </li>
-<li>TinyTinyEdit<p>A minimal Document-based text editor application.</p>
+<li><a href="TinyTinyEdit">TinyTinyEdit</a><p>A minimal Document-based text editor application.</p>
 </li>
-<li>Todo<p>A more complex NIB based applications. This is a document-based application.
+<li><a href="Todo">Todo</a><p>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</p>
 </li>
-<li>WebServicesTool<p>Another Project Builder Cocoa project.  Quiries an XML-RPC enabled web
+<li><a href="WebServicesTool">WebServicesTool</a><p>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.</p>
 </li>
-<li>FieldGraph<p>Another Project Builder Cocoa project, it also includes a <code><span>buildapp.py</span></code> 
+<li><a href="FieldGraph">FieldGraph</a><p>Another Project Builder Cocoa project, it also includes a <code><span>buildapp.py</span></code> 
 script. This shows an simple example of an MVC based application, that also
 makes use of NSBezierPaths.</p>
 <p>The application calculates the field pattern and RMS field of an antenna 

File pyobjc/Examples/00ReadMe.txt

View file
  • Ignore whitespace
-This directory contains a number of examples for using the pyobjc module.
+===============
+PyObjC Examples
+===============
 
-A number of simple scripts that demo the core module.
+Simple scripts that demo the core modules
+-----------------------------------------
 
-- subclassing-objective-c.py
+* subclassing-objective-c.py
 
   Create a subclass of an objective-C class
 
-- super-call.py
+* super-call.py
 
   Likewise, but call super-class implementation of a method
 
-- dictionary.py
+* dictionary.py
 
   Use a NS*Dictionary object.
 
-- rendezvous.py
+* rendezvous.py
 
   Use an NSNetService class to look for servers using rendezvous.
 
-And a number of Cocoa applications. These use the 'AppKit' package.
+Cocoa applications
+------------------
 
-- ClassBrowser
+* `ClassBrowser`_
 
   A simple class browser, demonstrating the use of NSBrowser (a "column view"
   hierarchical widget) and NSTableView.
 
-- CurrencyConverter
+* `CurrencyConverter`_
 
   A simple NIB based application. Start with this one. Also see the PyObjC
   tutorial.
 
-- DotView
+* `DotView`_
 
   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.
 
-- iClass
+* `iClass`_
 
   A more elaborate class browser; demonstrates NSOutlineView and NSTableView.
 
-- PrefPane
+* `PrefPane`_
 
   Demonstrates how to write an NSPreferencePane, for use in the
   System Preferences application. Requires a framework build of Python.
  
-- EnvironmentPrefs
+* `EnvironmentPrefs`_
 
   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.
 
-- PythonBrowser
+* `PythonBrowser`_
 
   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.
 
-- TableModel
+* `TableModel`_
 
   Basic demo that shows how to use a NSTableView.
 
-- TinyTinyEdit
+* `TinyTinyEdit`_
 
   A minimal Document-based text editor application.
 
-- Todo
+* `Todo`_
 
   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
 
-- WebServicesTool
+* `WebServicesTool`_
 
   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.
 
-- FieldGraph
+* `FieldGraph`_
   
   Another Project Builder Cocoa project, it also includes a ``buildapp.py`` 
   script. This shows an simple example of an MVC based application, that also
 
   The application calculates the field pattern and RMS field of an antenna 
   array with up to three elements.
+
+.. _`ClassBrowser`: ClassBrowser
+.. _`CurrencyConverter`: CurrencyConverter
+.. _`DotView`: DotView
+.. _`iClass`: iClass
+.. _`PrefPane`: PrefPane
+.. _`EnvironmentPrefs`: EnvironmentPrefs
+.. _`PythonBrowser`: PythonBrowser
+.. _`TableModel`: TableModel
+.. _`TinyTinyEdit`: TinyTinyEdit
+.. _`Todo`: Todo
+.. _`WebServicesTool`: WebServicesTool
+.. _`FieldGraph`: FieldGraph