[PyObjC-svn] r2073 - in trunk/pyobjc/pyobjc-framework-Cocoa: . Doc Exceptions Lib/AppKit Lib/Foundation PyObjCTest

[email protected]
Newsgroups gmane.comp.python.pyobjc.cvs
Message-ID <[email protected]>
Author: ronaldoussoren
Date: Sun Mar  8 11:00:21 2009
New Revision: 2073

Log:
Add unittests for the Cocoa framework wrappers. These are not yet complete
and a number of tests still fail.


Added:
   trunk/pyobjc/pyobjc-framework-Cocoa/Doc/api-notes-Foundation.txt
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_appkiterrors.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsaccessibility.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsalert.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsanimation.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsapplication.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsatstypesetter.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsattributedstring_appkit.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsbox.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsbrowser.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsbutton.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsbuttoncell.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nscolorlist.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nscolorpanel.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nscolorspace.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nscombobox.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nscontrol.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsdatepickercell.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsdocument.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsdocumentcontroller.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsdragging.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsdrawer.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nserrors.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsevent.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsfontdescriptor.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsfontmanager.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsfontpanel.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsglyphgenerator.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsglyphinfo.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsgradient.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsgraphics.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsgraphicscontext.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nshelpmanager.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsimagecell.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsimagerep.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsinterfacestyle.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nskeyvaluebinding.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nslayoutmanager.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nslevelindicatorcell.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsmatrix.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsmenu.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsmenuitem.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsmovie.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsmovieview.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsnib.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsopengl.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsoutlineview.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nspagelayout.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nspanel.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsparagraphstyle.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nspasteboard.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nspathcell.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nspathcontrol.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nspopupbutton.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nspopupbuttoncell.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsprinter.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsprintinfo.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsprintoperation.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsprintpanel.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsprogressindicator.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsquickdrawview.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsresponder.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsruleeditor.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsrulerview.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nssavepanel.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsscreen.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsscroller.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nssearchfieldcell.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nssegmentedcell.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nssegmentedcontrol.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nssimplehorizontaltypesetter.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsslidercell.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nssound.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsspeechsynthesizer.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsspellchecker.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nssplitview.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsstatusbar.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsstatusitem.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsstringdrawing.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nstablecolumn.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nstableview.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nstabview.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nstabviewitem.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nstext.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nstextattachment.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nstextcontainer.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nstextfieldcell.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nstextinputclient.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nstextlist.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nstextstorage.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nstexttable.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nstextview.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nstokenfieldcell.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nstoolbar.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nstoolbaritem.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nstrackingarea.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nstypesetter.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nswindow.py   (contents, props changed)
   trunk/pyobjc/pyobjc-framework-Cocoa/genHeaderTests.py   (contents, props changed)
Removed:
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_appkit.py
Modified:
   trunk/pyobjc/pyobjc-framework-Cocoa/Exceptions/AppKit.bridgesupport
   trunk/pyobjc/pyobjc-framework-Cocoa/Exceptions/Foundation.bridgesupport
   trunk/pyobjc/pyobjc-framework-Cocoa/Lib/AppKit/PyObjC.bridgesupport
   trunk/pyobjc/pyobjc-framework-Cocoa/Lib/Foundation/PyObjC.bridgesupport
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsbezierpath.py
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsbitmapimagerep.py
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nscell.py
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nscolor.py
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsfont.py
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsimage.py
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsopenpanel.py
   trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsview.py
   trunk/pyobjc/pyobjc-framework-Cocoa/setup.py

Modified: trunk/pyobjc/pyobjc-framework-Cocoa/Exceptions/AppKit.bridgesupport
==============================================================================
--- trunk/pyobjc/pyobjc-framework-Cocoa/Exceptions/AppKit.bridgesupport	(original)
+++ trunk/pyobjc/pyobjc-framework-Cocoa/Exceptions/AppKit.bridgesupport	Sun Mar  8 11:00:21 2009
@@ -1,6 +1,8 @@
 <?xml version='1.0'?>
 <!DOCTYPE signatures SYSTEM "file://localhost/System/Library/DTDs/BridgeSupport.dtd">
 <signatures version='1.0'>
+	<string_constant name='NSAttachmentCharacter' nsstring='true' />
+
   <struct comment='Struct with nested bitfields. Furthermore SNTypeSetterGlyphInfo is only used to peek/poke into a buffer' ignore='true' name='NSTypesetterGlyphInfo' />
   <opaque name='NSModalSession' />
   <opaque ignore='true' name='NSOpenGLContextAuxiliary*' />

Modified: trunk/pyobjc/pyobjc-framework-Cocoa/Exceptions/Foundation.bridgesupport
==============================================================================
--- trunk/pyobjc/pyobjc-framework-Cocoa/Exceptions/Foundation.bridgesupport	(original)
+++ trunk/pyobjc/pyobjc-framework-Cocoa/Exceptions/Foundation.bridgesupport	Sun Mar  8 11:00:21 2009
@@ -1,6 +1,14 @@
 <?xml version='1.0'?>
 <!DOCTYPE signatures SYSTEM "file://localhost/System/Library/DTDs/BridgeSupport.dtd">
 <signatures version='1.0'>
+  <constant name='NSDebugEnabled' ignore='true' comment='useless from python' />
+  <constant name='NSZombieEnabled' ignore='true' comment='useless from python' />
+  <constant name='NSDeallocateZombies' ignore='true' comment='useless from python' />
+  <constant name='NSHangOnUncaughtException' ignore='true' comment='useless from python' />
+  <constant name='NSKeepAllocationStatistics' ignore='true' comment='useless from python' />
+  <function name='NSCountFrames' ignore='true' comment='useless fromo python' />
+  <enum name='NSDecimalNoScale' value='32767' />
+
   <struct comment='Encodings are hardcoded because they do not contain a struct tag on Leopard. The value here is compatible with the encoding on Tiger.' name='NSAffineTransformStruct' type='{_NSAffineTransformStruct="m11"f"m12"f"m21"f"m22"f"tX"f"tY"f}' type64='{_NSAffineTransformStruct="m11"d"m12"d"m21"d"m22"d"tX"d"tY"d}' />
   <struct name='NSDecimal' />
   <struct ignore='true' name='NSFastEnumerationState' />
@@ -361,6 +369,7 @@
   <class name='NSDateFormatter'>
     <method selector='getObjectValue:forString:range:error:'>
       <arg index='0' type_modifier='o' />
+      <arg index='2' type_modifier='N' />
       <arg index='3' null_accepted='true' type_modifier='o' />
     </method>
   </class>
@@ -682,12 +691,18 @@
     </method>
   </class>
   <class name='NSPointerArray'>
-    <method ignore='true' selector='addPointer:' suggestion='use NSMutableArray' />
-    <method ignore='true' selector='insertPointer:atIndex:' suggestion='use NSMutableArray' />
-    <method ignore='true' selector='pointerAtIndex:' suggestion='use NSMutableArray'>
-      <retval type='^v' />
+    <method selector='addPointer:'>
+	<arg index='0' type='@' type64='@' />
+    </method>
+    <method selector='insertPointer:atIndex:' >
+	<arg index='0' type='@' type64='@' />
+    </method>
+    <method selector='pointerAtIndex:' >
+      <retval type='@' />
+    </method>
+    <method selector='replacePointerAtIndex:withPointer:' >
+	<arg index='1' type='@' type64='@' />
     </method>
-    <method ignore='true' selector='replacePointerAtIndex:withPointer:' suggestion='use NSMutableArray' />
   </class>
   <class name='NSPointerFunctions'>
     <method selector='acquireFunction'>

Modified: trunk/pyobjc/pyobjc-framework-Cocoa/Lib/AppKit/PyObjC.bridgesupport
==============================================================================
--- trunk/pyobjc/pyobjc-framework-Cocoa/Lib/AppKit/PyObjC.bridgesupport	(original)
+++ trunk/pyobjc/pyobjc-framework-Cocoa/Lib/AppKit/PyObjC.bridgesupport	Sun Mar  8 11:00:21 2009
@@ -885,6 +885,24 @@
   <constant name='NSWorkspaceWillPowerOffNotification' type='@' />
   <constant name='NSWorkspaceWillSleepNotification' type='@' />
   <constant name='NSWorkspaceWillUnmountNotification' type='@' />
+  <enum name='NSLayoutNotDone' value='0' />
+  <enum name='NSLayoutDone' value='1' />
+  <enum name='NSLayoutCantFit' value='2' />
+  <enum name='NSLayoutOutOfGlyphs' value='3' />
+  <enum name='NSGlyphLayoutAtAPoint' value='0' />
+  <enum name='NSGlyphLayoutAgainstAPoint' value='1' />
+  <enum name='NSGlyphLayoutWithPrevious' value='2' />
+  <enum name='NSLayoutLeftToRight' value='0' />
+  <enum name='NSLayoutRightToLeft' value='1' />
+  <enum name='NSBaselineNotSet' value='-1.0' />
+  <enum name='NumGlyphsToGetEachTime' value='20' />
+  <enum name='NSOneByteGlyphPacking' value='0'/>
+  <enum name='NSJapaneseEUCGlyphPacking' value='1'/>
+  <enum name='NSAsciiWithDoubleByteEUCGlyphPacking' value='2'/>
+  <enum name='NSTwoByteGlyphPacking' value='3'/>
+  <enum name='NSFourByteGlyphPacking' value='4'/>
+  <enum name='NSGlyphBelow' value='1'/>
+  <enum name='NSGlyphAbove' value='2'/>
   <enum name='NSAWTEventType' value='16' />
   <enum name='NSAboveBottom' value='4' />
   <enum name='NSAboveTop' value='1' />
@@ -946,7 +964,7 @@
   <enum name='NSAscendingPageOrder' value='1' />
   <enum name='NSAtBottom' value='5' />
   <enum name='NSAtTop' value='2' />
-  <enum name='NSAttachmentCharacter' value='65532' />
+  <string_constant name='NSAttachmentCharacter' nsstring='true' value='&#65532;' />
   <enum name='NSAutoPagination' value='0' />
   <enum name='NSAutosaveOperation' value='3' />
   <enum name='NSBMPFileType' value='1' />
@@ -12512,7 +12530,7 @@
     <method selector='instantiateNibWithOwner:topLevelObjects:'>
       <retval type='B' />
       <arg index='0' type='@' />
-      <arg index='1' type_modifier='N' />
+      <arg index='1' type_modifier='o' />
     </method>
   </class>
   <class name='NSNibConnector'>

Modified: trunk/pyobjc/pyobjc-framework-Cocoa/Lib/Foundation/PyObjC.bridgesupport
==============================================================================
--- trunk/pyobjc/pyobjc-framework-Cocoa/Lib/Foundation/PyObjC.bridgesupport	(original)
+++ trunk/pyobjc/pyobjc-framework-Cocoa/Lib/Foundation/PyObjC.bridgesupport	Sun Mar  8 11:00:21 2009
@@ -38,8 +38,6 @@
   <constant name='NSCurrentLocaleDidChangeNotification' type='@' />
   <constant name='NSDateFormatString' type='@' />
   <constant name='NSDateTimeOrdering' type='@' />
-  <constant name='NSDeallocateZombies' type='B' />
-  <constant name='NSDebugEnabled' type='B' />
   <constant name='NSDecimalDigits' type='@' />
   <constant name='NSDecimalNumberDivideByZeroException' type='@' />
   <constant name='NSDecimalNumberExactnessException' type='@' />
@@ -127,7 +125,6 @@
   <constant name='NSHTTPPropertyServerHTTPVersionKey' type='@' />
   <constant name='NSHTTPPropertyStatusCodeKey' type='@' />
   <constant name='NSHTTPPropertyStatusReasonKey' type='@' />
-  <constant name='NSHangOnUncaughtException' type='B' />
   <constant name='NSHebrewCalendar' type='@' />
   <constant name='NSHourNameDesignations' type='@' />
   <constant name='NSInconsistentArchiveException' type='@' />
@@ -162,7 +159,6 @@
   <constant name='NSJavaUserPath' type='@' />
   <constant name='NSJavaWillCreateVirtualMachineNotification' type='@' />
   <constant name='NSJavaWillSetupVirtualMachineNotification' type='@' />
-  <constant name='NSKeepAllocationStatistics' type='B' />
   <constant name='NSKeyValueChangeIndexesKey' type='@' />
   <constant name='NSKeyValueChangeKindKey' type='@' />
   <constant name='NSKeyValueChangeNewKey' type='@' />
@@ -305,7 +301,6 @@
   <constant name='NSZeroPoint' type='{_NSPoint=ff}' type64='{CGPoint=dd}' />
   <constant name='NSZeroRect' type='{_NSRect={_NSPoint=ff}{_NSSize=ff}}' type64='{CGRect={CGPoint=dd}{CGSize=dd}}' />
   <constant name='NSZeroSize' type='{_NSSize=ff}' type64='{CGSize=dd}' />
-  <constant name='NSZombieEnabled' type='B' />
   <enum name='NSASCIIStringEncoding' value='1' />
   <enum name='NSAdminApplicationDirectory' value='4' />
   <enum name='NSAggregateExpressionType' value='14' />
@@ -582,6 +577,7 @@
   <enum name='NSObjCStructType' value='123' />
   <enum name='NSObjCUnionType' value='40' />
   <enum name='NSObjCVoidType' value='118' />
+  <enum name='NSDecimalNoScale' value='32767' />
   <enum name='NSObjectAutoreleasedEvent' value='3' />
   <enum name='NSObjectExtraRefDecrementedEvent' value='5' />
   <enum name='NSObjectExtraRefIncrementedEvent' value='4' />
@@ -969,9 +965,6 @@
     <arg type='I' type64='Q' />
     <arg type='^{_NSZone=}' />
   </function>
-  <function name='NSCountFrames'>
-    <retval type='I' type64='Q' />
-  </function>
   <function name='NSCountHashTable'>
     <retval type='I' type64='Q' />
     <arg type='@' type64='@' />
@@ -7271,7 +7264,9 @@
     </method>
     <method selector='getObjectValue:forString:range:error:'>
       <retval type='B' />
-      <arg index='1' type='@' />
+      <arg index='0' type_modifier='o' />
+      <arg index='2' type_modifier='N' />
+      <arg index='3' type_modifier='o' null_accepted='true' />
     </method>
     <method selector='groupingSeparator'>
       <retval type='@' />
@@ -9047,52 +9042,19 @@
     </method>
   </class>
   <class name='NSPointerArray'>
-    <method selector='addPointer:' suggestion='use NSMutableArray' />
-    <method selector='allObjects'>
-      <retval type='@' />
-    </method>
-    <method selector='compact'>
-      <retval type='v' />
-    </method>
-    <method selector='count'>
-      <retval type='I' type64='Q' />
-    </method>
-    <method selector='initWithOptions:'>
-      <retval type='@' />
-      <arg index='0' type='I' />
-    </method>
-    <method selector='initWithPointerFunctions:'>
-      <retval type='@' />
-      <arg index='0' type='@' />
-    </method>
-    <method selector='insertPointer:atIndex:' suggestion='use NSMutableArray' />
-    <method class_method='true' selector='pointerArrayWithOptions:'>
-      <retval type='@' />
-      <arg index='0' type='I' />
-    </method>
-    <method class_method='true' selector='pointerArrayWithPointerFunctions:'>
-      <retval type='@' />
-      <arg index='0' type='@' />
-    </method>
-    <method class_method='true' selector='pointerArrayWithStrongObjects'>
-      <retval type='@' />
-    </method>
-    <method class_method='true' selector='pointerArrayWithWeakObjects'>
-      <retval type='@' />
-    </method>
-    <method selector='pointerAtIndex:' suggestion='use NSMutableArray' />
-    <method selector='pointerFunctions'>
-      <retval type='@' />
-    </method>
-    <method selector='removePointerAtIndex:'>
-      <retval type='v' />
-      <arg index='0' type='I' type64='Q' />
-    </method>
-    <method selector='replacePointerAtIndex:withPointer:' suggestion='use NSMutableArray' />
-    <method selector='setCount:'>
-      <retval type='v' />
-      <arg index='0' type='I' type64='Q' />
+	  <method selector='addPointer:'>
+		  <arg index='0' type='@' type64='@' />
+	  </method>
+    <method selector='insertPointer:atIndex:' >
+		  <arg index='0' type='@' type64='@' />
+	  </method>
+
+    <method selector='pointerAtIndex:' >
+	    <retval type='@' type64='@' />
     </method>
+    <method selector='replacePointerAtIndex:withPointer:' suggestion='use NSMutableArray' >
+		  <arg index='1' type='@' type64='@' />
+	  </method>
   </class>
   <class name='NSPointerFunctions'>
     <method selector='BOOL'>

Modified: trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsbezierpath.py
==============================================================================
--- trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsbezierpath.py	(original)
+++ trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsbezierpath.py	Sun Mar  8 11:00:21 2009
@@ -3,9 +3,7 @@
 from PyObjCTools.TestSupport import *
 import objc
 
-from AppKit import NSBezierPath,  NSMoveToBezierPathElement
-from AppKit import NSLineToBezierPathElement, NSCurveToBezierPathElement
-from AppKit import NSClosePathBezierPathElement
+from AppKit import *
 
 class TestNSBezierPath(TestCase):
     if not hasattr(TestCase, 'assertAlmostEquals'):
@@ -115,5 +113,24 @@
         self.assertPointEquals(points[2], (3, 4)) # end point
 
 
+    def testConstants(self):
+        self.failUnlessEqual(NSButtLineCapStyle, 0)
+        self.failUnlessEqual(NSRoundLineCapStyle, 1)
+        self.failUnlessEqual(NSSquareLineCapStyle, 2)
+        self.failUnlessEqual(NSMiterLineJoinStyle, 0)
+        self.failUnlessEqual(NSRoundLineJoinStyle, 1)
+        self.failUnlessEqual(NSBevelLineJoinStyle, 2)
+        self.failUnlessEqual(NSNonZeroWindingRule, 0)
+        self.failUnlessEqual(NSEvenOddWindingRule, 1)
+        self.failUnlessEqual(NSMoveToBezierPathElement, 0)
+        self.failUnlessEqual(NSLineToBezierPathElement, 1)
+        self.failUnlessEqual(NSCurveToBezierPathElement, 2)
+        self.failUnlessEqual(NSClosePathBezierPathElement, 3)
+
+
+    def testMethods(self):
+        self.fail("+ (void)drawPackedGlyphs:(const char *)packedGlyphs atPoint:(NSPoint)point;")
+        self.fail("- (void)appendBezierPathWithPackedGlyphs:(const char *)packedGlyphs;")
+
 if __name__ == '__main__':
     main( )

Modified: trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsbitmapimagerep.py
==============================================================================
--- trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsbitmapimagerep.py	(original)
+++ trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsbitmapimagerep.py	Sun Mar  8 11:00:21 2009
@@ -3,7 +3,7 @@
 import array
 
 from objc import YES, NO
-from AppKit import NSBitmapImageRep, NSDeviceRGBColorSpace, NSCalibratedWhiteColorSpace
+from AppKit import *
 
 class TestNSBitmapImageRep(TestCase):
     def testInstantiation(self):
@@ -106,5 +106,54 @@
             dataPlanes = (None, None, None, None, None)
             y = y.initWithBitmapDataPlanes_pixelsWide_pixelsHigh_bitsPerSample_samplesPerPixel_hasAlpha_isPlanar_colorSpaceName_bytesPerRow_bitsPerPixel_(dataPlanes, width, height, 8, 3, NO, NO, NSDeviceRGBColorSpace, 0, 0)
 
+    def testConstants(self):
+        self.failUnlessEqual(NSTIFFCompressionNone, 1)
+        self.failUnlessEqual(NSTIFFCompressionCCITTFAX3, 3)
+        self.failUnlessEqual(NSTIFFCompressionCCITTFAX4, 4)
+        self.failUnlessEqual(NSTIFFCompressionLZW, 5)
+        self.failUnlessEqual(NSTIFFCompressionJPEG, 6)
+        self.failUnlessEqual(NSTIFFCompressionNEXT, 32766)
+        self.failUnlessEqual(NSTIFFCompressionPackBits, 32773)
+        self.failUnlessEqual(NSTIFFCompressionOldJPEG, 32865)
+        self.failUnlessEqual(NSTIFFFileType, 0)
+        self.failUnlessEqual(NSBMPFileType, 1)
+        self.failUnlessEqual(NSGIFFileType, 2)
+        self.failUnlessEqual(NSJPEGFileType, 3)
+        self.failUnlessEqual(NSPNGFileType, 4)
+        self.failUnlessEqual(NSJPEG2000FileType, 5)
+        self.failUnlessEqual(NSImageRepLoadStatusUnknownType, -1)
+        self.failUnlessEqual(NSImageRepLoadStatusReadingHeader, -2)
+        self.failUnlessEqual(NSImageRepLoadStatusWillNeedAllData, -3)
+        self.failUnlessEqual(NSImageRepLoadStatusInvalidData, -4)
+        self.failUnlessEqual(NSImageRepLoadStatusUnexpectedEOF, -5)
+        self.failUnlessEqual(NSImageRepLoadStatusCompleted, -6)
+        self.failUnlessEqual(NSAlphaFirstBitmapFormat, 1 << 0)
+        self.failUnlessEqual(NSAlphaNonpremultipliedBitmapFormat, 1 << 1)
+        self.failUnlessEqual(NSFloatingPointSamplesBitmapFormat, 1 << 2)
+
+        self.failUnlessIsInstance(NSImageCompressionMethod, unicode)
+        self.failUnlessIsInstance(NSImageCompressionFactor, unicode)
+        self.failUnlessIsInstance(NSImageDitherTransparency, unicode)
+        self.failUnlessIsInstance(NSImageRGBColorTable, unicode)
+        self.failUnlessIsInstance(NSImageInterlaced, unicode)
+        self.failUnlessIsInstance(NSImageColorSyncProfileData, unicode)
+        self.failUnlessIsInstance(NSImageFrameCount, unicode)
+        self.failUnlessIsInstance(NSImageCurrentFrame, unicode)
+        self.failUnlessIsInstance(NSImageCurrentFrameDuration, unicode)
+        self.failUnlessIsInstance(NSImageLoopCount, unicode)
+        self.failUnlessIsInstance(NSImageGamma, unicode)
+        self.failUnlessIsInstance(NSImageProgressive, unicode)
+        self.failUnlessIsInstance(NSImageEXIFData, unicode)
+        self.failUnlessIsInstance(NSImageFallbackBackgroundColor, unicode)
+
+    def testMethods(self):
+        self.fail("- (id)initWithBitmapDataPlanes:(unsigned char **)planes pixelsWide:(NSInteger)width pixelsHigh:(NSInteger)height bitsPerSample:(NSInteger)bps samplesPerPixel:(NSInteger)spp hasAlpha:(BOOL)alpha isPlanar:(BOOL)isPlanar colorSpaceName:(NSString *)colorSpaceName  bitmapFormat:(NSBitmapFormat)bitmapFormat bytesPerRow:(NSInteger)rBytes bitsPerPixel:(NSInteger)pBits;")
+        self.fail("- (id)initWithBitmapDataPlanes:(unsigned char **)planes pixelsWide:(NSInteger)width pixelsHigh:(NSInteger)height bitsPerSample:(NSInteger)bps samplesPerPixel:(NSInteger)spp hasAlpha:(BOOL)alpha isPlanar:(BOOL)isPlanar colorSpaceName:(NSString *)colorSpaceName bytesPerRow:(NSInteger)rBytes bitsPerPixel:(NSInteger)pBits;") #XXX See above
+        self.fail("- (void)getCompression:(NSTIFFCompression *)compression factor:(float *)factor;")
+        self.fail("- (void)setCompression:(NSTIFFCompression)compression factor:(float)factor;")
+        self.fail("+ (void)getTIFFCompressionTypes:(const NSTIFFCompression **)list count:(NSInteger *)numTypes;")
+
+
+
 if __name__ == '__main__':
     main( )

Modified: trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nscell.py
==============================================================================
--- trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nscell.py	(original)
+++ trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nscell.py	Sun Mar  8 11:00:21 2009
@@ -1,7 +1,7 @@
 from PyObjCTools.TestSupport import *
 import objc
 
-from AppKit import NSCell
+from AppKit import *
 
 class TestNSCell(TestCase):
     def testUnicode(self):
@@ -22,5 +22,83 @@
         cell.setFloatValue_(f)
         self.assertEquals(cell.floatValue(), f)
 
+    def testMethods(self):
+        self.fail("- (void)setAction:(SEL)aSelector;")
+
+    def testFunctions(self):
+        self.fail("APPKIT_EXTERN void NSDrawThreePartImage(NSRect frame, NSImage *startCap, NSImage *centerFill, NSImage *endCap, BOOL vertical, NSCompositingOperation op, CGFloat alphaFraction, BOOL flipped) AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER;")
+
+        self.fail("APPKIT_EXTERN void NSDrawNinePartImage(NSRect frame, NSImage *topLeftCorner, NSImage *topEdgeFill, NSImage *topRightCorner, NSImage *leftEdgeFill, NSImage *centerFill, NSImage *rightEdgeFill, NSImage *bottomLeftCorner, NSImage *bottomEdgeFill, NSImage *bottomRightCorner, NSCompositingOperation op, CGFloat alphaFraction, BOOL flipped) AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER;")
+
+
+    def testConstants(self):
+        self.failUnlessIsInstance(NSControlTintDidChangeNotification, unicode)
+
+        self.failUnlessEqual(NSAnyType, 0)
+        self.failUnlessEqual(NSIntType, 1)
+        self.failUnlessEqual(NSPositiveIntType, 2)
+        self.failUnlessEqual(NSFloatType, 3)
+        self.failUnlessEqual(NSPositiveFloatType, 4)
+        self.failUnlessEqual(NSDoubleType, 6)
+        self.failUnlessEqual(NSPositiveDoubleType, 7)
+        self.failUnlessEqual(NSNullCellType, 0)
+        self.failUnlessEqual(NSTextCellType, 1)
+        self.failUnlessEqual(NSImageCellType, 2)
+        self.failUnlessEqual(NSCellDisabled, 0)
+        self.failUnlessEqual(NSCellState, 1)
+        self.failUnlessEqual(NSPushInCell, 2)
+        self.failUnlessEqual(NSCellEditable, 3)
+        self.failUnlessEqual(NSChangeGrayCell, 4)
+        self.failUnlessEqual(NSCellHighlighted, 5)
+        self.failUnlessEqual(NSCellLightsByContents, 6)
+        self.failUnlessEqual(NSCellLightsByGray, 7)
+        self.failUnlessEqual(NSChangeBackgroundCell, 8)
+        self.failUnlessEqual(NSCellLightsByBackground, 9)
+        self.failUnlessEqual(NSCellIsBordered, 10)
+        self.failUnlessEqual(NSCellHasOverlappingImage, 11)
+        self.failUnlessEqual(NSCellHasImageHorizontal, 12)
+        self.failUnlessEqual(NSCellHasImageOnLeftOrBottom, 13)
+        self.failUnlessEqual(NSCellChangesContents, 14)
+        self.failUnlessEqual(NSCellIsInsetButton, 15)
+        self.failUnlessEqual(NSCellAllowsMixedState, 16)
+        self.failUnlessEqual(NSNoImage, 0)
+        self.failUnlessEqual(NSImageOnly, 1)
+        self.failUnlessEqual(NSImageLeft, 2)
+        self.failUnlessEqual(NSImageRight, 3)
+        self.failUnlessEqual(NSImageBelow, 4)
+        self.failUnlessEqual(NSImageAbove, 5)
+        self.failUnlessEqual(NSImageOverlaps, 6)
+        self.failUnlessEqual(NSScaleProportionally, 0)
+        self.failUnlessEqual(NSScaleToFit, 1)
+        self.failUnlessEqual(NSScaleNone, 2)
+        self.failUnlessEqual(NSImageScaleProportionallyDown, 0)
+        self.failUnlessEqual(NSImageScaleAxesIndependently,1)
+        self.failUnlessEqual(NSImageScaleNone, 2)
+        self.failUnlessEqual(NSImageScaleProportionallyUpOrDown, 3)
+        self.failUnlessEqual(NSMixedState, -1)
+        self.failUnlessEqual(NSOffState,  0)
+        self.failUnlessEqual(NSOnState,  1)
+        self.failUnlessEqual(NSNoCellMask, 0)
+        self.failUnlessEqual(NSContentsCellMask, 1)
+        self.failUnlessEqual(NSPushInCellMask, 2)
+        self.failUnlessEqual(NSChangeGrayCellMask, 4)
+        self.failUnlessEqual(NSChangeBackgroundCellMask, 8)
+        self.failUnlessEqual(NSDefaultControlTint, 0)
+        self.failUnlessEqual(NSBlueControlTint, 1)
+        self.failUnlessEqual(NSGraphiteControlTint, 6)
+        self.failUnlessEqual(NSClearControlTint, 7)
+        self.failUnlessEqual(NSRegularControlSize, 0)
+        self.failUnlessEqual(NSSmallControlSize, 1)
+        self.failUnlessEqual(NSMiniControlSize, 2)
+        self.failUnlessEqual(NSCellHitNone, 0)
+        self.failUnlessEqual(NSCellHitContentArea, 1 << 0)
+        self.failUnlessEqual(NSCellHitEditableTextArea, 1 << 1)
+        self.failUnlessEqual(NSCellHitTrackableArea, 1 << 2)
+        self.failUnlessEqual(NSBackgroundStyleLight, 0)
+        self.failUnlessEqual(NSBackgroundStyleDark, 1)
+        self.failUnlessEqual(NSBackgroundStyleRaised, 2)
+        self.failUnlessEqual(NSBackgroundStyleLowered, 3)
+
+
 if __name__ == '__main__':
     main( )

Modified: trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nscolor.py
==============================================================================
--- trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nscolor.py	(original)
+++ trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nscolor.py	Sun Mar  8 11:00:21 2009
@@ -1,9 +1,20 @@
 from PyObjCTools.TestSupport import *
-import AppKit
+from AppKit import *
 
 class TestRegressions (TestCase):
     def testQualifiersInSignature(self):
-        AppKit.NSColor.redColor().getRed_green_blue_alpha_(None, None, None, None)
+        NSColor.redColor().getRed_green_blue_alpha_(None, None, None, None)
+
+    def testMethods(self):
+        self.fail("+ (NSColor *)colorWithColorSpace:(NSColorSpace *)space components:(const CGFloat *)components count:(NSInteger)numberOfComponents;")
+        self.fail("- (void)getRed:(CGFloat *)red green:(CGFloat *)green blue:(CGFloat *)blue alpha:(CGFloat *)alpha;")
+        self.fail("- (void)getHue:(CGFloat *)hue saturation:(CGFloat *)saturation brightness:(CGFloat *)brightness alpha:(CGFloat *)alpha;")
+        self.fail("- (void)getWhite:(CGFloat *)white alpha:(CGFloat *)alpha;")
+        self.fail("- (void)getCyan:(CGFloat *)cyan magenta:(CGFloat *)magenta yellow:(CGFloat *)yellow black:(CGFloat *)black alpha:(CGFloat *)alpha;")
+        self.fail("- (void)getComponents:(CGFloat *)components;")
+
+    def testConstants(self):
+        self.failUnlessIsInstance(NSSystemColorsDidChangeNotification, unicode)
 
 if __name__ == "__main__":
     main()

Modified: trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsfont.py
==============================================================================
--- trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsfont.py	(original)
+++ trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsfont.py	Sun Mar  8 11:00:21 2009
@@ -2,6 +2,7 @@
 import objc
 
 import AppKit
+from AppKit import *
 
 import os
 ON_JAGUAR=((os.uname()[0] == 'Darwin') and (int(os.uname()[2][0]) <= '6'))
@@ -13,14 +14,6 @@
             # This should probably be 'assertAlmostEquals'
             self.assertEquals(v1, v2)
 
-    def testConstants(self):
-        self.assert_(hasattr(AppKit, 'NSFontIdentityMatrix'))
-
-        if AppKit.NSFontIdentityMatrix is None:
-            # MacOSX
-            return
-
-        self.assertEquals(AppKit.NSFontIdentityMatrix, (1.0, 0.0, 0.0, 1.0, 0.0, 0.0))
 
     def testMatrixMethods(self):
         o = AppKit.NSFont.boldSystemFontOfSize_(10);
@@ -60,6 +53,72 @@
         self.assertRaises(ValueError, AppKit.NSFont.fontWithName_matrix_, nm, (1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0))
 
 
+    def testConstants(self):
+        self.assertEquals(AppKit.NSFontIdentityMatrix, None)
+
+        self.failUnlessEqual(NSControlGlyph, 0xffffff)
+        self.failUnlessEqual(NSNullGlyph, 0)
+        self.failUnlessEqual(NSNativeShortGlyphPacking, 5)
+
+        self.failUnlessEqual(NSFontDefaultRenderingMode, 0)
+        self.failUnlessEqual(NSFontAntialiasedRenderingMode, 1)
+        self.failUnlessEqual(NSFontIntegerAdvancementsRenderingMode, 2)
+        self.failUnlessEqual(NSFontAntialiasedIntegerAdvancementsRenderingMode, 3)
+
+        self.failUnlessIsInstance(NSAntialiasThresholdChangedNotification, unicode)
+        self.failUnlessIsInstance(NSFontSetChangedNotification, unicode)
+
+    @onlyOn32Bit
+    def testConstants_32bitonly(self):
+        self.failUnlessEqual(NSOneByteGlyphPacking, 0)
+        self.failUnlessEqual(NSJapaneseEUCGlyphPacking, 1)
+        self.failUnlessEqual(NSAsciiWithDoubleByteEUCGlyphPacking, 2)
+        self.failUnlessEqual(NSTwoByteGlyphPacking, 3)
+        self.failUnlessEqual(NSFourByteGlyphPacking, 4)
+
+        self.failUnlessEqual(NSGlyphBelow, 1)
+        self.failUnlessEqual(NSGlyphAbove, 2)
+
+        self.failUnlessIsInstance(NSAFMFamilyName, unicode)
+        self.failUnlessIsInstance(NSAFMFontName, unicode)
+        self.failUnlessIsInstance(NSAFMFormatVersion, unicode)
+        self.failUnlessIsInstance(NSAFMFullName, unicode)
+        self.failUnlessIsInstance(NSAFMNotice, unicode)
+        self.failUnlessIsInstance(NSAFMVersion, unicode)
+        self.failUnlessIsInstance(NSAFMWeight, unicode)
+        self.failUnlessIsInstance(NSAFMEncodingScheme, unicode)
+        self.failUnlessIsInstance(NSAFMCharacterSet, unicode)
+        self.failUnlessIsInstance(NSAFMCapHeight, unicode)
+        self.failUnlessIsInstance(NSAFMXHeight, unicode)
+        self.failUnlessIsInstance(NSAFMAscender, unicode)
+        self.failUnlessIsInstance(NSAFMDescender, unicode)
+        self.failUnlessIsInstance(NSAFMUnderlinePosition, unicode)
+        self.failUnlessIsInstance(NSAFMUnderlineThickness, unicode)
+        self.failUnlessIsInstance(NSAFMItalicAngle, unicode)
+        self.failUnlessIsInstance(NSAFMMappingScheme, unicode)
+
+
+
+
+
+    def testMethods(self):
+        self.fail("- (void)getBoundingRects:(NSRectArray)bounds forGlyphs:(const NSGlyph *)glyphs count:(NSUInteger)glyphCount;")
+        self.fail("- (void)getAdvancements:(NSSizeArray)advancements forGlyphs:(const NSGlyph *)glyphs count:(NSUInteger)glyphCount;")
+        self.fail("- (void)getAdvancements:(NSSizeArray)advancements forPackedGlyphs:(const void *)packedGlyphs length:(NSUInteger)length;")
+
+    @onlyOn32Bit
+    def testMethods32(self):
+        self.fail("- (NSPoint)positionOfGlyph:(NSGlyph)curGlyph precededByGlyph:(NSGlyph)prevGlyph isNominal:(BOOL *)nominal")
+        self.fail("- (NSInteger)positionsForCompositeSequence:(NSGlyph *)someGlyphs numberOfGlyphs:(NSInteger)numGlyphs pointArray:(NSPointArray)points")
+        self.fail("- (NSPoint)positionOfGlyph:(NSGlyph)curGlyph struckOverGlyph:(NSGlyph)prevGlyph metricsExist:(BOOL *)exist")
+        self.fail("- (NSPoint)positionOfGlyph:(NSGlyph)aGlyph struckOverRect:(NSRect)aRect metricsExist:(BOOL *)exist")
+        self.fail("- (NSPoint)positionOfGlyph:(NSGlyph)thisGlyph withRelation:(NSGlyphRelation)rel toBaseGlyph:(NSGlyph)baseGlyph totalAdvancement:(NSSizePointer)adv metricsExist:(BOOL *)exist")
+
+
+
+    def testFunctions(self):
+        self.fail("NSConvertGlyphsToPackedGlyphs")
+
 
 
 if __name__ == '__main__':

Modified: trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsimage.py
==============================================================================
--- trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsimage.py	(original)
+++ trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsimage.py	Sun Mar  8 11:00:21 2009
@@ -1,5 +1,6 @@
 from PyObjCTools.TestSupport import *
 import AppKit
+from AppKit import *
 
 class TestNSImage (TestCase):
     def test_compositePoint(self):
@@ -16,5 +17,69 @@
         htmlIcon.compositeToPoint_fromRect_operation_((8,0), ((8,0),(8,16)), AppKit.NSCompositeCopy)
         comboIcon.unlockFocus()
 
+    def testConstants(self):
+        self.failUnlessEqual(NSImageLoadStatusCompleted, 0)
+        self.failUnlessEqual(NSImageLoadStatusCancelled, 1)
+        self.failUnlessEqual(NSImageLoadStatusInvalidData, 2)
+        self.failUnlessEqual(NSImageLoadStatusUnexpectedEOF, 3)
+        self.failUnlessEqual(NSImageLoadStatusReadError, 4)
+
+        self.failUnlessEqual(NSImageCacheDefault, 0)
+        self.failUnlessEqual(NSImageCacheAlways, 1)
+        self.failUnlessEqual(NSImageCacheBySize, 2)
+        self.failUnlessEqual(NSImageCacheNever, 3)
+
+    
+    @min_os_level("10.5")
+    def testConstants10_5(self):
+        self.failUnlessIsInstance( NSImageNameQuickLookTemplate, unicode)
+        self.failUnlessIsInstance( NSImageNameBluetoothTemplate, unicode)
+        self.failUnlessIsInstance( NSImageNameIChatTheaterTemplate, unicode)
+        self.failUnlessIsInstance( NSImageNameSlideshowTemplate, unicode)
+        self.failUnlessIsInstance( NSImageNameActionTemplate, unicode)
+        self.failUnlessIsInstance( NSImageNameSmartBadgeTemplate, unicode)
+        self.failUnlessIsInstance( NSImageNameIconViewTemplate, unicode)
+        self.failUnlessIsInstance( NSImageNameListViewTemplate, unicode)
+        self.failUnlessIsInstance( NSImageNameColumnViewTemplate, unicode)
+        self.failUnlessIsInstance( NSImageNameFlowViewTemplate, unicode)
+        self.failUnlessIsInstance( NSImageNamePathTemplate, unicode)
+        self.failUnlessIsInstance( NSImageNameInvalidDataFreestandingTemplate, unicode)
+        self.failUnlessIsInstance( NSImageNameLockLockedTemplate, unicode)
+        self.failUnlessIsInstance( NSImageNameLockUnlockedTemplate, unicode)
+        self.failUnlessIsInstance( NSImageNameGoRightTemplate, unicode)
+        self.failUnlessIsInstance( NSImageNameGoLeftTemplate, unicode)
+        self.failUnlessIsInstance( NSImageNameRightFacingTriangleTemplate, unicode)
+        self.failUnlessIsInstance( NSImageNameLeftFacingTriangleTemplate, unicode)
+        self.failUnlessIsInstance( NSImageNameAddTemplate, unicode)
+        self.failUnlessIsInstance( NSImageNameRemoveTemplate, unicode)
+        self.failUnlessIsInstance( NSImageNameRevealFreestandingTemplate, unicode)
+        self.failUnlessIsInstance( NSImageNameFollowLinkFreestandingTemplate, unicode)
+        self.failUnlessIsInstance( NSImageNameEnterFullScreenTemplate, unicode)
+        self.failUnlessIsInstance( NSImageNameExitFullScreenTemplate, unicode)
+        self.failUnlessIsInstance( NSImageNameStopProgressTemplate, unicode)
+        self.failUnlessIsInstance( NSImageNameStopProgressFreestandingTemplate, unicode)
+        self.failUnlessIsInstance( NSImageNameRefreshTemplate, unicode)
+        self.failUnlessIsInstance( NSImageNameRefreshFreestandingTemplate, unicode)
+        self.failUnlessIsInstance( NSImageNameBonjour, unicode)
+        self.failUnlessIsInstance( NSImageNameDotMac, unicode)
+        self.failUnlessIsInstance( NSImageNameComputer, unicode)
+        self.failUnlessIsInstance( NSImageNameFolderBurnable, unicode)
+        self.failUnlessIsInstance( NSImageNameFolderSmart, unicode)
+        self.failUnlessIsInstance( NSImageNameNetwork, unicode)
+        self.failUnlessIsInstance( NSImageNameMultipleDocuments, unicode)
+        self.failUnlessIsInstance( NSImageNameUserAccounts, unicode)
+        self.failUnlessIsInstance( NSImageNamePreferencesGeneral, unicode)
+        self.failUnlessIsInstance( NSImageNameAdvanced, unicode)
+        self.failUnlessIsInstance( NSImageNameInfo, unicode)
+        self.failUnlessIsInstance( NSImageNameFontPanel, unicode)
+        self.failUnlessIsInstance( NSImageNameColorPanel, unicode)
+        self.failUnlessIsInstance( NSImageNameUser, unicode)
+        self.failUnlessIsInstance( NSImageNameUserGroup, unicode)
+        self.failUnlessIsInstance( NSImageNameEveryone, unicode)
+
+    def testMethods(self):
+        self.fail("- (id)initWithIconRef:(IconRef)iconRef;")
+
+
 if __name__ == "__main__":
     main()

Modified: trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsopenpanel.py
==============================================================================
--- trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsopenpanel.py	(original)
+++ trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsopenpanel.py	Sun Mar  8 11:00:21 2009
@@ -16,5 +16,11 @@
             sig,
             'v@:@@@@@:i')
 
+    def testMethods(self):
+        self.fail("- (void)beginSheetForDirectory:(NSString *)path file:(NSString *)name types:(NSArray *)fileTypes modalForWindow:(NSWindow *)docWindow modalDelegate:(id)delegate didEndSelector:(SEL)didEndSelector contextInfo:(void *)contextInfo;")
+
+        self.fail("- (void)beginForDirectory:(NSString *)path file:(NSString *)name types:(NSArray *)fileTypes modelessDelegate:(id)delegate didEndSelector:(SEL)didEndSelector contextInfo:(void *)contextInfo;")
+
+
 if __name__ == "__main__":
     main()

Modified: trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsview.py
==============================================================================
--- trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsview.py	(original)
+++ trunk/pyobjc/pyobjc-framework-Cocoa/PyObjCTest/test_nsview.py	Sun Mar  8 11:00:21 2009
@@ -20,5 +20,50 @@
         method = ObjCTestNSView_KnowPageRange.rectForPage_
         self.assertEquals(objc.splitSignature(method.signature), objc.splitSignature("{_NSRect={_NSPoint=ff}{_NSSize=ff}}12@0:4i8"))
 
+
+class TestHeader (TestCase):
+    def testConstants(self):
+        self.failUnlessEqual(NSViewNotSizable,  0)
+        self.failUnlessEqual(NSViewMinXMargin,  1)
+        self.failUnlessEqual(NSViewWidthSizable,  2)
+        self.failUnlessEqual(NSViewMaxXMargin,  4)
+        self.failUnlessEqual(NSViewMinYMargin,  8)
+        self.failUnlessEqual(NSViewHeightSizable, 16)
+        self.failUnlessEqual(NSViewMaxYMargin, 32)
+        self.failUnlessEqual(NSNoBorder, 0)
+        self.failUnlessEqual(NSLineBorder, 1)
+        self.failUnlessEqual(NSBezelBorder, 2)
+        self.failUnlessEqual(NSGrooveBorder, 3)
+
+        self.failUnlessIsInstance(NSViewFrameDidChangeNotification, unicode)
+        self.failUnlessIsInstance(NSViewFocusDidChangeNotification, unicode)
+        self.failUnlessIsInstance(NSViewBoundsDidChangeNotification, unicode)
+        self.failUnlessIsInstance(NSViewGlobalFrameDidChangeNotification, unicode)
+
+    @min_os_level("10.5")
+    def testConstants10_5(self):
+        self.failUnlessIsInstance(NSFullScreenModeAllScreens, unicode)
+        self.failUnlessIsInstance(NSFullScreenModeSetting, unicode)
+        self.failUnlessIsInstance(NSFullScreenModeWindowLevel, unicode)
+        self.failUnlessIsInstance(NSViewDidUpdateTrackingAreasNotification, unicode)
+
+
+
+    def testMethods(self):
+        self.fail("- (void)getRectsBeingDrawn:(const NSRect **)rects count:(NSInteger *)count;")
+        self.fail("- (void)sortSubviewsUsingFunction:(NSComparisonResult (*)(id, id, void *))compare context:(void *)context;")
+
+        self.fail("- (NSTrackingRectTag)addTrackingRect:(NSRect)aRect owner:(id)anObject userData:(void *)data assumeInside:(BOOL)flag;")
+        self.fail("- (NSToolTipTag)addToolTipRect:(NSRect)aRect owner:(id)anObject userData:(void *)data;")
+        self.fail("- (void)getRectsExposedDuringLiveResize:(NSRect[4])exposedRects count:(NSInteger *)count;")
+        self.fail("- (NSString *)view:(NSView *)view stringForToolTip:(NSToolTipTag)tag point:(NSPoint)point userData:(void *)data;")
+
+
+
+
+
+
+
+
 if __name__ == "__main__":
     main()

Modified: trunk/pyobjc/pyobjc-framework-Cocoa/setup.py
==============================================================================
--- trunk/pyobjc/pyobjc-framework-Cocoa/setup.py	(original)
+++ trunk/pyobjc/pyobjc-framework-Cocoa/setup.py	Sun Mar  8 11:00:21 2009
@@ -27,7 +27,7 @@
 
 setup(
     name='pyobjc-framework-Cocoa',
-    version='2.0',
+    version='2.2b1',
     description = "Wrappers for the Cocoa frameworks on Mac OS X",
     long_description = __doc__,
     author='Ronald Oussoren',

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
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.