Top "Objective-c-runtime" questions

The Objective-C runtime is a runtime support library provided with an implementation of the Objective-C language.

How to write iOS app purely in C

I read here Learn C Before Objective-C? Usually I then replace some Obj-C code with pure C code (after all …

objective-c ios c cocoa-touch objective-c-runtime
Swift native base class or NSObject

I tested out some isa swizzling with Swift, and found that it only works when NSObject is a super-class (directly …

objective-c swift objective-c-runtime
Objective-C class -> string like: [NSArray className] -> @"NSArray"

I am trying to get a string name of a class from the class object itself. // For instance [NSArray className]; // @"…

objective-c reflection metaprogramming objective-c-runtime
Class is implemented in both. One of the two will be used

I have a project that has a dependency (installed via CocoaPods) using SocketRocket and have imported a static library from …

ios objective-c objective-c-runtime socketrocket
Get all methods of an Objective-C class or instance

In Objective-C I can test whether a given class or instance responds to certain selectors. But how can query a …

objective-c introspection objective-c-runtime
What exactly is super in Objective-C?

As far as I know, it's a pointer to the superclass. It's hard-wired with the superclass, and not dynamically figured …

objective-c super objective-c-runtime
What is objc_setAssociatedObject() and in what cases should it be used?

In a project I have taken on, the original author has opted to use objc_setAssociatedObject() and I'm not 100% clear …

iphone objective-c objective-c-runtime
Get property name as a string

I need a way to pass a property and get the name assigned to it. Any suggestions? @property (nonatomic, retain) …

objective-c introspection objective-c-runtime declared-property
swift: Equivalent objective-c runtime class

What is equivalent swift code for below Objective-C code. I couldn't find swift topic with runtime concept. #import <objc/…

ios swift objective-c-runtime
Why doesn't Objective-C support private methods?

I've seen a number of strategies for declaring semi-private methods in Objective-C, but there does not seem to be a …

objective-c objective-c-runtime