Commits

Bob Ippolito committed 42ba0a9

update NEWS

  • Participants
  • Parent commits 03f534e
  • Branches pyobjc-ancient

Comments (0)

Files changed (3)

File Examples/NonFunctional/RemotePyInterpreter/AsyncPythonInterpreter.py

         self.serverSocket = None
         return self
 
-    def bundleForClass(cls):
-        # XXX - do something intelligent here
-        return NSBundle.mainBundle()
-    bundleForClass = classmethod(bundleForClass)
-    
     def awakeFromNib(self):
         defaults = NSUserDefaults.standardUserDefaults()
         def default(k, v, typeCheck=None):
 <ul>
 <li>(UNFINISHED) New RemotePyInterpreter example that demonstrates an
 out-of-process Python interpreter (primarily for IDE uses).</li>
+<li>New <code><span>objc.protocolsForClass</span></code> function that returns a list of protocols
+that the class directly claims to conform to.</li>
 <li>PyObjC classes can now declare that they implement formal protocols,
 for example:<pre>
 class MyLockingClass(NSObject, objc.protocolNamed('NSLocking')):
 - (UNFINISHED) New RemotePyInterpreter example that demonstrates an
   out-of-process Python interpreter (primarily for IDE uses).
 
+- New ``objc.protocolsForClass`` function that returns a list of protocols
+  that the class directly claims to conform to.
+
 - PyObjC classes can now declare that they implement formal protocols,
   for example::