From: <cod...@go...> - 2009-02-04 08:35:16
|
Comment #2 on issue 15 by jedahu: nil class objects http://code.google.com/p/hoc/issues/detail?id=15 If I create a cocoa framework with Test.h and Test.c, and test using 'ghci -framework <TestFW>' then '_Test /= nil' and '_Test # alloc >>= init' work fine. If however, Test.h and Test.hs refer to an instance variable 'id anything', getting or setting this IVar raises an error: Test> x <- _Test # alloc >>= init Test> a <- _NSArray # array Test> x # setIVar _anything a *** Exception: Prelude.head: empty list I dug through HOC.ExportClass and it appears the error comes from an application of 'head' in 'getInstanceVariablesForObject'. It seems I can't get much to work today. Am I doing something completely wrong? Jeremy -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings |