This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ronaldoussoren
Recipients Marc.Culler, culler, ned.deily, remyrfouquette, ronaldoussoren
Date 2022-02-03.07:37:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1643873843.68.0.956943317008.issue46573@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2022-02-03 07:37:23ronaldoussorensetrecipients: + ronaldoussoren, ned.deily, culler, Marc.Culler, remyrfouquette
2022-02-03 07:37:23ronaldoussorensetmessageid: <1643873843.68.0.956943317008.issue46573@roundup.psfhosted.org>
2022-02-03 07:37:23ronaldoussorenlinkissue46573 messages
2022-02-03 07:37:23ronaldoussorencreate