Commits

Ronald Oussoren committed e0bbf05

Fix problems on OSX 10.5

  • Participants
  • Parent commits aa1119d

Comments (0)

Files changed (1)

File pyobjc-framework-SearchKit/Lib/SearchKit/__init__.py

     mod.SKIndexGetTypeID
     mod.SKDocumentRef
 
-except NameError:
+except AttributeError:
     # SKIndexGetTypeID is documented, but not actually exported by Leopard. Try to
     # emulate the missing functionality.
     #
         pool = NSAutoreleasePool.alloc().init()
         try:
             rI = mod.SKIndexCreateWithMutableData(NSMutableData.data(),
-                    None, kSKIndexInverted, None)
+                    None, mod.kSKIndexInverted, None)
 
             indexID = mod.CFGetTypeID(rI)
 
         # when the framework loader calls it the first time around,
         # by this time the framework is fully initialized and we get
         # the correct result.
-        mod.SKDocumentRef = objc.registerCFSignature(
+        SKDocumentRef = objc.registerCFSignature(
                 "SKDocumentRef", b"@", mod.SKDocumentGetTypeID())