Ronald Oussoren <ronaldousso...@mac.com> added the comment:

Categories make it possible to add methods to an existing class, but not new 
attributes.  The latter shouldn't be a problem in principle for an 
NSApplication subclass because only a single instance of the application class 
will get created and you may as well use global variables for those.

In some sense categories are syntactic sugar for monkey patching existing 
classes, commonly used to add convenience methods to Cocoa classes.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue46573>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to