Category errata in Objective-C
Category errata in Objective-C
- Subject: Category errata in Objective-C
- From: Alex Zavatone <email@hidden>
- Date: Fri, 29 Mar 2019 16:51:45 -0500
In all the docs on categories, I seem to have missed what the term for the text
within the parens of a category declaration is called and what function it
serves.
Any idea?
Also, I seem to remember the esteemed Jens stating that as soon as a category
class is in your project, it applies to all objects instantiated from the base
class and we only had to do an import if we wanted to use the category methods
in the debugger. Please correct me if I am wrong here.
But I found out that that is not true. You have to import the category header
into any classes where you want to take advantage of the category methods you
added to a specific class. The import can be done on a specific file level,
into a .pch if you want your whole app/module to be able to take advantage of
the methods.
Did I misread Jens’s statement?
Cheers,
Alex Zavatone
Sent from my iPad
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden