Re: Category errata in Objective-C

2019-04-03 Thread David Hoerl
I've had to do some funky things with categories in the past, in at least one case because some framework had added one but for complex reasons could not import. So, similar to what Jens said: The interface description of the category is for the sole purpose of helping the compiler generate a

Re: Category errata in Objective-C

2019-03-29 Thread Cody Garvin
Just for clarification, an empty name in the parens is referred to as an extension and not a nameless category. An extension has extra abilities such as adding properties. Just being explicit for those that may not know. Please excuse mobile typos > On Mar 29, 2019, at 5:55 PM, Jens Alfke wro

Re: Category errata in Objective-C

2019-03-29 Thread Jens Alfke
> On Mar 29, 2019, at 2:51 PM, Alex Zavatone wrote: > > 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 > me

Re: Category errata in Objective-C

2019-03-29 Thread Ben Kennedy
> On 29 Mar 2019, at 2:51 pm, Alex Zavatone wrote: > > 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. It's the category name. NSObject(Foo) represents "the Foo category on NS

Category errata in Objective-C

2019-03-29 Thread Alex Zavatone
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 a