1. lakka
  2. pyobjc-docs

Source

pyobjc-docs / pyobjc-core / Doc / introduction / objective-c.rst

Objective-C

Objective-C also features exceptions, but they are typically only used for disaster recovery, not error handling, so you will not encounter them very often. Read `The Objective-C Programming Language`_ if you want to know more about exceptions in Objective-C.

One thing to keep in mind when translating Objective-C snippets to Python is that any message can be sent to nil, and the return value of that message will be nil. PyObjC translates nil to None when crossing the bridge, so any such attempt will raise an AttributeError.