Commits

Ronald Oussoren  committed 8f13201

Add an expanded signature for [NSWorkspace getInfoForFile:application:type:],
this allows you to do:

import AppKit

c = AppKit.NSWorkspace.sharedWorkspace()
print c.getInfoForFile_application_type_('memo.doc')

  • Participants
  • Parent commits 89f2a81

Comments (0)

Files changed (1)

File pyobjc/Lib/AppKit/_AppKitSignatures.py

 set_signature_for_selector("NSColor", "getHue:saturation:brightness:alpha:", "v@:o^fo^fo^fo^f")
 set_signature_for_selector("NSColor", "getRed:green:blue:alpha:", "v@:o^fo^fo^fo^f")
 set_signature_for_selector("NSColor", "getWhite:alpha:", "v@:o^fo^f")
+set_signature_for_selector("NSWorkspace", "getInfoForFile:application:type:", "c16@4:8@12o^@16o^@20")
 set_signature_for_selector("NSDocument", "_changeAlertDidEnd:returnCode:contextInfo:", "v16@4:8@12i16i20")
 set_signature_for_selector("NSDocument", "_compatibility_canCloseDocumentWithDelegate:shouldCloseSelector:contextInfo:", "v16@4:8@12:16i20")
 set_signature_for_selector("NSDocument", "_compatibility_doSavePanelSave:delegate:didSaveSelector:contextInfo:", "v20@4:8i12@16:20i24")