[PyObjC-svn] r2239 - trunk/pyobjc/pyobjc-framework-Cocoa/Doc
[email protected] Sun, 24 May 2009 03:44:41 -0500
| Newsgroups | gmane.comp.python.pyobjc.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: ronaldoussoren
Date: Sun May 24 03:44:40 2009
New Revision: 2239
Log:
Small documentation tweaks
Modified:
trunk/pyobjc/pyobjc-framework-Cocoa/Doc/AppCategories.txt
trunk/pyobjc/pyobjc-framework-Cocoa/Doc/FndCategories.txt
trunk/pyobjc/pyobjc-framework-Cocoa/Doc/threading-helpers.txt
Modified: trunk/pyobjc/pyobjc-framework-Cocoa/Doc/AppCategories.txt
==============================================================================
--- trunk/pyobjc/pyobjc-framework-Cocoa/Doc/AppCategories.txt (original)
+++ trunk/pyobjc/pyobjc-framework-Cocoa/Doc/AppCategories.txt Sun May 24 03:44:40 2009
@@ -9,9 +9,11 @@
classes from the ``AppKit`` framework. These categories introduce
new methods that aren't present in that framework.
-To use these new methods use the following code somewhere in your program::
+To use these new methods use the following code somewhere in your program:
- import PyObjCTools.AppCategories
+ .. sourcecode:: python
+
+ import PyObjCTools.AppCategories
Additional methods on ``NSGraphicsContext``
@@ -23,12 +25,16 @@
This is a Python context-manager for use with the ``with`` statement.
- Usage::
+ Usage:
+
+ .. sourcecode:: python
with NSGraphicsContext.savedGraphicsState():
pass
- This is equivalent to::
+ This is equivalent to:
+
+ .. sourcecode:: python
NSGraphicsContext.saveGraphicsState()
try:
@@ -41,12 +47,16 @@
------------------------------------------
Class ``NSAnimationContext`` can be used as the context for a ``with``
-statement::
+statement:
+
+ .. sourcecode:: python
with NSAnimationContext:
pass
-This is equivalent to::
+This is equivalent to:
+
+ .. sourcecode:: python
NSAnimationContext.beginGrouping()
try:
Modified: trunk/pyobjc/pyobjc-framework-Cocoa/Doc/FndCategories.txt
==============================================================================
--- trunk/pyobjc/pyobjc-framework-Cocoa/Doc/FndCategories.txt (original)
+++ trunk/pyobjc/pyobjc-framework-Cocoa/Doc/FndCategories.txt Sun May 24 03:44:40 2009
@@ -11,7 +11,9 @@
To use these new methods use the following code somewhere in your program::
- import PyObjCTools.FndCategories
+ .. sourcecode:: python
+
+ import PyObjCTools.FndCategories
Additional methods on ``NSAffineTransform``
Modified: trunk/pyobjc/pyobjc-framework-Cocoa/Doc/threading-helpers.txt
==============================================================================
--- trunk/pyobjc/pyobjc-framework-Cocoa/Doc/threading-helpers.txt (original)
+++ trunk/pyobjc/pyobjc-framework-Cocoa/Doc/threading-helpers.txt Sun May 24 03:44:40 2009
@@ -78,7 +78,10 @@
Note: these methods are synchronous, that is, they block the current thread
until the call on the "other" thread is done.
-As an example::
+As an example:
+
+ .. sourcecode:: python
+ :linenos:
class MyClass (NSObject):
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com