My problem is about meta-programming with classes derived from
NSObject (Cocoa). I am testing an example from the (great) Poignant's
Ruby Guide (see attachments of classes and test case).
When I run the test case with Meta not derived from OSX::NSObject (and
initialize a Klass instance with new), the results are OK.
When I run the same test case with Meta derived from OSX::NSObject (and
initialize with alloc.init), I get an illegal instruction and a CrashReport (not
displayed, but log file produced).
What is wrong with my code ?
Log in to post a comment.