NSKVONotifying_ proxy class
29 Jul
2010
29 Jul
'10
8:43 p.m.
I am trying to find the class name of a KVO compliant class I have created (called test below). I am assuming that MacRuby inserts a proxy class in front of my class to implement the KVO protocol. How do I get the name of my original class? puts test.class gives some class reference address like #<Class:0x200570360> - not particularly useful. puts NSStringFromClass(test.class) gives NSKVONotifying_test I could just strip NSKVONotifying_ from this string but this assumes this prefix will never change. Is there a better method I can use to gain access to the original object or its class? Thanks, Dave.
5581
Age (days ago)
5581
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dave Baldwin