Author: bbum
Date: Mon Sep 22 18:25:50 2008
New Revision: 2017
Log:
NSDocument subclass should now correctly override parent methods (5507892).
Modified:
trunk/pyobjc/pyobjc-xcode/Project Templates/Cocoa-Python Document-based Application/xcPROJECTNAMEASIDENTIFIERxcDocument.py
Modified: trunk/pyobjc/pyobjc-xcode/Project Templates/Cocoa-Python Document-based Application/xcPROJECTNAMEASIDENTIFIERxcDocument.py
==============================================================================
--- trunk/pyobjc/pyobjc-xcode/Project Templates/Cocoa-Python Document-based Application/xcPROJECTNAMEASIDENTIFIERxcDocument.py (original)
+++ trunk/pyobjc/pyobjc-xcode/Project Templates/Cocoa-Python Document-based Application/xcPROJECTNAMEASIDENTIFIERxcDocument.py Mon Sep 22 18:25:50 2008
@@ -22,7 +22,7 @@
super(xcPROJECTNAMEASIDENTIFIERxcDocument, self).windowControllerDidLoadNib_(aController)
def dataOfType_error_(self, typeName, outError):
- return None
+ return None, NSError.errorWithDomain_code_userInfo_(NSOSStatusErrorDomain, -4, None) # -4 is unimpErr from CarbonCore
def readFromData_ofType_error_(self, data, typeName, outError):
- return NO
+ return NO, NSError.errorWithDomain_code_userInfo_(NSOSStatusErrorDomain, -4, None) # -4 is unimpErr from CarbonCore
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
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.