Commits

Anonymous committed 1a44807

Fixed classnib.py a bit more. Cleaned up some of the informal protocols in the AppKit package.

  • Participants
  • Parent commits 16fbc52

Comments (0)

Files changed (3)

 2002-10-31  Bill Bumgarner  <bbum@codefab.com>
+	* Fixed a typo in NSOutlineViewDataSource.
+	* Fixed the classnib.py script slightly.
 	* Added support for NSSet in the convenience methods.
 
 2002-10-30  Bill Bumgarner  <bbum@codefab.com>

pyobjc/Lib/AppKit/__init__.py

 	[
 		_objc.selector(
 			None, 
-			selector='outlineView:accepDrop:item:childIndex:',
+			selector='outlineView:acceptDrop:item:childIndex:',
 			signature='c@@@i',
 			required=0
 		),

pyobjc/Lib/objc/classnib.py

 		generator.add_classnib(n)
 	generator.generate()
 
-
 #
 #
 # Beyond this are classes and functions used to implement the public functions,
 		outlets = classinfo.get('OUTLETS', ())
 		fw = self._frameworkForClass(supername)
 		if fw:
-			supername = '%s.%s'%(fw, supername)
+			supername = '%s'%(supername)
 	
 		self._fp.write('class %sBase (%s):\n'%(clsname, supername))
 		self._fp.write('\t"Base class for class \'%s\'"\n'%clsname)
 		if not actions and not outlets:
 			self._fp.write('\tpass\n')
 
-		print outlets
 		for o in outlets:
 			self._fp.write('\t%s = IBOutlet("%s")\n'%(o, o))
 		if outlets:
 
 if __name__ == '__main__':
 	import sys
-	classinfo = parse_classes_nib('English.lproj/MainMenu.nib')
-	generate_wrapper_module(sys.stdout, [classinfo])
+	for nibFile in sys.argv[1:]:
+		classinfo = parse_classes_nib(nibFile)
+		generate_wrapper_module(sys.stdout, [classinfo])