• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSMethodSignature throws an exception encoding GLKMatrix4
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSMethodSignature throws an exception encoding GLKMatrix4


  • Subject: NSMethodSignature throws an exception encoding GLKMatrix4
  • From: Jeff Kelley <email@hidden>
  • Date: Wed, 21 Aug 2013 11:24:31 -0400

I’ve been trying to TDD an app that uses GLKit using the Kiwi test
framework. One of the methods I’m stubbing returns a GLKMatrix4. I stub it
like this:

PhysicsManager *mockManager = [PhysicsManager mock];
>


[mockManager stub:@selector(physicsTransformForObject:)
>  andReturn:theValue(GLKMatrix4Identity)];


When that code executes, it tries to encode the type of GLKMatrix4 and I
get this error:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException',
> reason: '+[NSMethodSignature signatureWithObjCTypes:]: unsupported type
> encoding spec '(' in '(_GLKMatrix4={?=ffffffffffffffff}[16f])8@12''


I’m not too familiar with NSMethodSignature; is this something I could get
around fairly easily? My current approach is going to be to box GLKMatrix4
into an object (probably NSValue) and use that instead, but I would be
interested to be able to fix it in Kiwi if possible.


Jeff Kelley
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Don't worry - Fixed - Compiler Error on Class Method?
      • From: Dave <email@hidden>
    • Compiler Error on Class Method?
      • From: Dave <email@hidden>
    • Re: NSMethodSignature throws an exception encoding GLKMatrix4
      • From: Marcel Weiher <email@hidden>
  • Prev by Date: Re: Cocoa-dev Digest, Vol 10, Issue 522
  • Next by Date: Re: NSMethodSignature throws an exception encoding GLKMatrix4
  • Previous by thread: Re: -[NSProxy doesNotRecognizeSelector: error
  • Next by thread: Re: NSMethodSignature throws an exception encoding GLKMatrix4
  • Index(es):
    • Date
    • Thread