Commits

Ronald Oussoren  committed 2d8361c

Cleanup deprecated junk

  • Participants
  • Parent commits e2fd855

Comments (0)

Files changed (4)

File pyobjc-core/Doc/api/module-objc.rst

    After module initialization use ``NSBundle.bundleForClass_(ClassInYourBundle)``
    to get the bundle.
 
-.. function:: registerPlugin(pluginName)
-
-   .. deprecated:: 2.3
-      use :func:`currentBundle` instead
-
-   Register the current py2app plugin by named and return its bundle.
-
-.. function:: pluginBundle(pluginName)
-
-   .. deprecated:: 2.3
-      use :func:`currentBundle` instead
-
-   Return the main bundle for a named plugin. This should only be used
-   after it has been register with :func:`registerPlugin`.
-
-
-
 Memory management
 .................
 

File pyobjc-core/Lib/objc/__init__.py

 from objc._descriptors import *
 from objc._category import *
 from objc._bridges import *
-from objc._compat import *
 from objc._pythonify import *
 from objc._locking import *
 from objc._context import *

File pyobjc-core/Lib/objc/_compat.py

-__all__ = ['runtime', 'pluginBundle', 'registerPlugin', 'splitStruct', '_loadFunctionList']
-import warnings
-
-class Runtime:
-    """
-    Backward compatibility interface.
-
-    This class provides (partial) support for the interface of
-    older versions of PyObjC.
-    """
-    def __getattr__(self, name):
-        warnings.warn("Deprecated: use objc.lookUpClass",
-            DeprecationWarning)
-        import objc
-        if name == '__objc_classes__':
-            return objc.getClassList()
-        elif name == '__kind__':
-            return 'python'
-
-        try:
-            return objc.lookUpClass(name)
-        except objc.nosuchclass_error:
-            raise AttributeError(name)
-
-    def __repr__(self):
-        return "objc.runtime"
-
-runtime = Runtime()
-
-_PLUGINS = {}
-def registerPlugin(pluginName):
-    """
-    Deprecated: use currentBundle()
-
-    Register the current py2app plugin by name and return its bundle
-    """
-    warnings.warn("Deprecated: use objc.currentBundle()", DeprecationWarning)
-    import os
-    import sys
-    path = os.path.dirname(os.path.dirname(os.environ['RESOURCEPATH']))
-    if sys.version_info[0] == 2 and not isinstance(path, unicode):
-        path = unicode(path, sys.getfilesystemencoding())
-    _PLUGINS[pluginName] = path
-    return pluginBundle(pluginName)
-
-def pluginBundle(pluginName):
-    """
-    Deprecated: use currentBundle()
-
-    Return the main bundle for the named plugin. This should be used
-    only after it has been registered with registerPlugin
-    """
-    warnings.warn("Deprecated: use currentBundle()", DeprecationWarning)
-    import objc
-    NSBundle = objc.lookUpClass('NSBundle')
-    return NSBundle.bundleWithPath_(_PLUGINS[pluginName])
-
-def splitStruct(value):
-    warnings.warn("Deprecated: use splitStructSignature()", DeprecationWarning)
-    import objc
-    return objc.splitStructSignature(value)
-
-def _loadFunctionList(*args, **kwds):
-    warnings.warn("Deprecated: use loadFunctionList()", DeprecationWarning)
-    import objc
-    objc.loadFunctionList(*args, **kwds)

File pyobjc-core/NEWS.txt

 * Opaque pointer objects now have a method "__c_void_p__" that returns a :class:`ctypes.void_p` for
   the same pointer.
 
+* Added an API to "pyobjc-api.h" that makes it easier to explicitly load function references in 
+  manual function wrappers. This replaces the compiler support for weak linking, which was needed
+  because weak linking did not work properly with clang (Xcode 4.5.1). This also makes it possible
+  to compile in support for functions that aren't available on the build platform (in particular, when
+  building on 10.8 the Quartz bindings now contain support for some functions that were dropped in 10.8
+  and which will be available through pyobjc when deploying to 10.7)
+
+* The framework wrappers no longer export a "protocols" submodule. Those submodules were deprecated in
+  2.4 and did not contain information that is usefull for users of PyObjC.
+
+* Dropped the *objc.runtime" attribute (which was deprecated in PyObjC 2.0)
+
+* Dropped depcreated APIs *objc.pluginBundle*, *objc.registerPlugin*. Py2app has used a 
+  different mechanism for years now.
+
+* Dropped deprecatd APIs: *objc.splitStruct*,  *objc._loadFunctionList*. Both have
+  been replaced by newer APIs in PyObjC 2.4.
+
 
 Version 2.6
 -----------