[PyObjC-svn] r2249 - in trunk/pyobjc/pyobjc-framework-LaunchServices: . Lib/LaunchServices PyObjCTest
[email protected] Tue, 26 May 2009 04:48:29 -0500
| Newsgroups | gmane.comp.python.pyobjc.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: ronaldoussoren
Date: Tue May 26 04:48:28 2009
New Revision: 2249
Log:
some tweaks to the launchservices wrappers
Modified:
trunk/pyobjc/pyobjc-framework-LaunchServices/Lib/LaunchServices/PyObjC.bridgesupport
trunk/pyobjc/pyobjc-framework-LaunchServices/PyObjCTest/test_lssharedfilelist.py
trunk/pyobjc/pyobjc-framework-LaunchServices/setup.py
Modified: trunk/pyobjc/pyobjc-framework-LaunchServices/Lib/LaunchServices/PyObjC.bridgesupport
==============================================================================
--- trunk/pyobjc/pyobjc-framework-LaunchServices/Lib/LaunchServices/PyObjC.bridgesupport (original)
+++ trunk/pyobjc/pyobjc-framework-LaunchServices/Lib/LaunchServices/PyObjC.bridgesupport Tue May 26 04:48:28 2009
@@ -682,7 +682,7 @@
<function name='LSGetExtensionInfo'>
<retval type='l' type64='i' />
<arg type='L' type64='L' />
- <arg c_array_length_in_arg='0' type='^S' type_modifier='n' />
+ <arg c_array_length_in_arg='0' type='^T' type_modifier='n' />
<arg type='^I' type64='^I' type_modifier='o' />
</function>
<function name='LSGetHandlerOptionsForContentType'>
@@ -784,7 +784,11 @@
<arg type='^{OpaqueLSSharedFileListRef=}' />
<arg type='^{__CFRunLoop=}' />
<arg type='^{__CFString=}' />
- <arg type='^?' type64='^?' />
+ <arg type='^?' type64='^?' function_pointer='true' function_pointer_retained='true' >
+ <retval type='v'/>
+ <arg type='^{OpaqueLSSharedFileListRef=}' />
+ <arg type='^v' />
+ </arg>
<arg type='^v' type64='^v' />
</function>
<function name='LSSharedFileListCopyProperty'>
@@ -798,7 +802,7 @@
<arg type='^I' type64='^I' />
</function>
<function name='LSSharedFileListCreate'>
- <retval type='^{OpaqueLSSharedFileListRef=}' />
+ <retval type='^{OpaqueLSSharedFileListRef=}' already_cfretained='true' />
<arg type='^{__CFAllocator=}' />
<arg type='^{__CFString=}' />
<arg type='@' />
@@ -882,7 +886,11 @@
<arg type='^{OpaqueLSSharedFileListRef=}' />
<arg type='^{__CFRunLoop=}' />
<arg type='^{__CFString=}' />
- <arg type='^?' type64='^?' />
+ <arg type='^?' type64='^?' function_pointer='true' function_pointer_retained='true' >
+ <retval type='v'/>
+ <arg type='^{OpaqueLSSharedFileListRef=}' />
+ <arg type='^v' />
+ </arg>
<arg type='^v' type64='^v' />
</function>
<function name='LSSharedFileListSetAuthorization'>
Modified: trunk/pyobjc/pyobjc-framework-LaunchServices/PyObjCTest/test_lssharedfilelist.py
==============================================================================
--- trunk/pyobjc/pyobjc-framework-LaunchServices/PyObjCTest/test_lssharedfilelist.py (original)
+++ trunk/pyobjc/pyobjc-framework-LaunchServices/PyObjCTest/test_lssharedfilelist.py Tue May 26 04:48:28 2009
@@ -42,7 +42,7 @@
rl = CFRunLoopGetCurrent()
- self.failUnlessArgIsFunction(LSSharedFileListAddObserver, 3, 'v^{OpaqueLSSharedFileListItemRef=}^v', True)
+ self.failUnlessArgIsFunction(LSSharedFileListAddObserver, 3, 'v^{OpaqueLSSharedFileListRef=}^v', True)
self.failUnlessArgHasType(LSSharedFileListAddObserver, 4, '^v')
@objc.callbackFor(LSSharedFileListAddObserver)
Modified: trunk/pyobjc/pyobjc-framework-LaunchServices/setup.py
==============================================================================
--- trunk/pyobjc/pyobjc-framework-LaunchServices/setup.py (original)
+++ trunk/pyobjc/pyobjc-framework-LaunchServices/setup.py Tue May 26 04:48:28 2009
@@ -1,5 +1,22 @@
'''
-Wrappers for framework 'LaunchServices'.
+Wrappers for the "LaunchServices" framework on MacOSX. The API's in this
+framework enable applications to open other applictions or their document
+files, simularly to how the Dock or Finder do that.
+
+A number of tasks that can be implemented using this framework:
+
+ * Launch or activate applications
+
+ * Open documents in other applications
+
+ * Identify the preferred application for opening a document
+
+ * Register information about the kinds of documents an application
+ can open (UTI's)
+
+ * Obtain information for showing a document (display name, icon, ...)
+
+ * Maintain and update the contents of the Recent Items menu.
These wrappers don't include documentation, please check Apple's documention
for information on how to use this framework and PyObjC's documentation
@@ -27,16 +44,10 @@
platforms = [ "MacOS X" ],
packages = [ "LaunchServices" ],
package_dir = { '': 'Lib' },
- setup_requires = [
- 'bdist_mpkg>=0.4.2',
- ],
install_requires = [
- 'pyobjc-core>=2.0',
- 'pyobjc-framework-Cocoa>=2.0',
- #'pyobjc-framework-AE>=2.0',
- #'pyobjc-framework-CoreServices>=2.0',
+ 'pyobjc-core>=2.2b2',
+ 'pyobjc-framework-Cocoa>=2.2b2',
],
- dependency_links = [],
package_data = {
'': ['*.bridgesupport']
},
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com