[PyObjC-svn] r2114 - trunk/pyobjc/pyobjc-framework-Cocoa/Examples/AppKit/TinyTinyEdit

[email protected]
Newsgroups gmane.comp.python.pyobjc.cvs
Message-ID <[email protected]>
Author: ronaldoussoren
Date: Sun Mar 22 12:44:45 2009
New Revision: 2114

Log:
Remove NibClassBuilder usage

Modified:
   trunk/pyobjc/pyobjc-framework-Cocoa/Examples/AppKit/TinyTinyEdit/   (props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/Examples/AppKit/TinyTinyEdit/TinyTinyEdit.py

Modified: trunk/pyobjc/pyobjc-framework-Cocoa/Examples/AppKit/TinyTinyEdit/TinyTinyEdit.py
==============================================================================
--- trunk/pyobjc/pyobjc-framework-Cocoa/Examples/AppKit/TinyTinyEdit/TinyTinyEdit.py	(original)
+++ trunk/pyobjc/pyobjc-framework-Cocoa/Examples/AppKit/TinyTinyEdit/TinyTinyEdit.py	Sun Mar 22 12:44:45 2009
@@ -1,18 +1,9 @@
 """TinyTinyEdit -- A minimal Document-based Cocoa application."""
+from Cocoa import *
+from PyObjCTools import AppHelper
 
-
-from PyObjCTools import NibClassBuilder, AppHelper
-
-
-NibClassBuilder.extractClasses("TinyTinyDocument")
-
-
-# class defined in TinyTinyDocument.nib
-class TinyTinyDocument(NibClassBuilder.AutoBaseClass):
-    # the actual base class is NSDocument
-    # The following outlets are added to the class:
-    # textView
-
+class TinyTinyDocument(NSDocument):
+    textView = objc.IBOutlet()
     path = None
 
     def windowNibName(self):

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.