Re: NSMethodSignature throws an exception encoding GLKMatrix4
Re: NSMethodSignature throws an exception encoding GLKMatrix4
- Subject: Re: NSMethodSignature throws an exception encoding GLKMatrix4
- From: Jeff Kelley <email@hidden>
- Date: Fri, 06 Sep 2013 16:01:22 -0400
Sorry to bring up an old topic, but I’m still running into this and I’ve
reported it as a bug (rdar://14931876). Say you have this method:
- (GLKMatrix4)identityReturningMethod
{
return GLKMatrix4Identity;
}
Now, in another method in the same class, you try to make a signature for
that selector:
[[self class] instanceMethodSignatureForSelector:@selector
(identityReturningMethod)];
This will crash with the exception in my previous post. Am I correct that
this is a bug in +[NSMethodSignature signatureWithObjCTypes:]?
Jeff Kelley
On Wed, Aug 21, 2013 at 12:51 PM, Marcel Weiher <email@hidden>wrote:
>
> On Aug 21, 2013, at 17:24 , Jeff Kelley <email@hidden> wrote:
>
>
> *** 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.
>
>
> It looks like it doesn’t like the structure name, the following is fine:
>
> [NSMethodSignature signatureWithObjCTypes:"{?=ffffffffffffffff}[16f]8@12”]
>
> Whereas the following is not:
>
> [NSMethodSignature
> signatureWithObjCTypes:"(_GLKMatrix4={?=ffffffffffffffff}[16f])8@12”]
>
> Cheers,
>
> Marcel
>
>
_______________________________________________
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