Top "Class-extensions" questions

Class extension vs class category

Class extensions @interface Class () are a lot more powerful and can inject variables into the class. Categories @interface Class (Category) …

objective-c objective-c-category class-extensions
Objective-C class extension

As a fairly new objective-c programmer (with a 4 years Java experience), I seem to be having a hard time understanding …

objective-c class-extensions
Swift contains extension for Array

I'm trying to add an extension method in Array like so: extension Array { func contains(obj: T) -> Bool { …

ios swift class-extensions
Identity 2.0: Creating custom ClaimsIdentity eg: User.Identity.GetUserById<int>(int id) for Per Request Validation

See this similar question: Need access more user properties in User.Identity I would like to create custom authentication methods …

c# asp.net-mvc-5 asp.net-identity-2 class-extensions razor-3
Class extension vs. subclassing in Swift?

I'am using a third-party framework that provides a class whose instances only have properties. In my app, I'd like to …

ios swift properties subclass class-extensions
What's the harm of property override in Objective-C?

There are several situations where you might override a super class's property. You declare a property with the same name …

objective-c properties overriding class-extensions
ObjectiveC: where to declare private instance properties?

I have the following class interface: @interface MyClass : NSObject @property int publicProperty; @end then the implementation: @interface MyClass() // class extension …

objective-c implementation private class-extensions