Alex Rivera | Logout

Does Objective-C have reflection?

Asked 2011-09-26T02:03:56.737
22

I'm doing research about Objective-C, and I'd like to know if it has the concept of reflection. None of the documents I've found so far describes reflection.

Edit
Report

1 Answer

1

There are a flock of methods that can access various properties of a class and, presumably, "peek" and "poke" at some object internals. I've never played with them, and a little reading that I've done suggests that they're far from perfect, but they do appear to offer some ability for "reflection", similar to the Java concept.

answered 2011-09-26T02:15:36.547

Your Answer