{"issue":{"created_at":"2011-12-02T21:54:36Z","state":"open","updated_at":"2011-12-02T23:02:54Z","user":{"gravatar_id":"9589076e5febf87d6d7156928e934c60","id":58990,"url":"https://api.github.com/users/haxie1","avatar_url":"https://secure.gravatar.com/avatar/9589076e5febf87d6d7156928e934c60?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"haxie1"},"comments":4,"body":"I am having trouble writing specs for an NSProxy subclass in my project. \r\n\r\nCalling something like:\r\n```MyProxy *proxy = [[MyProxy alloc] init];\r\n[proxy shouldNotBeNil];\r\n```\r\nThrows:\r\nNSInvalidArgumentException \"*** -[NSProxy doesNotRecognizeSelector：attachToVerifier：] called!\"\r\n\r\nIs this a bug? If not, can you show me how to solve this problem?","assignee":null,"id":2433531,"labels":[],"number":77,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"speccing NSProxy subclasses","html_url":"https://github.com/allending/Kiwi/issues/77","closed_at":null,"url":"https://api.github.com/repos/allending/Kiwi/issues/77","milestone":null},"action":"created","comment":{"created_at":"2011-12-02T23:02:54Z","updated_at":"2011-12-02T23:02:54Z","user":{"gravatar_id":"9589076e5febf87d6d7156928e934c60","id":58990,"url":"https://api.github.com/users/haxie1","avatar_url":"https://secure.gravatar.com/avatar/9589076e5febf87d6d7156928e934c60?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"haxie1"},"body":"I found the issue. Not sure I fully understand why this solves the problem though.\r\n\r\nSince I am writing my specs first, I hadn't fully implemented -methodSignatureForSelector or -forwardInvocation. Returning the NSMethodSignature from my target object, and invoking the NSInvocation on my proxies target, returned a valid instance of my proxy which caused my spec to pass.\r\n\r\nIf you want the demo project, I can still send it to you.","id":2997163,"url":"https://api.github.com/repos/allending/Kiwi/issues/comments/2997163"}}