I need an example to understand how it works. the documentation is not clear enough.
Post
Replies
Boosts
Views
Activity
Found why! In User-Defined I had to add i386 x86_64 arm64
it worked, thanks
Seems to work... what about this other case?
Same error on NSMethodSignature *ret = instanceMethodForSelectorIMP( self->targetObjectClass, @selector(instanceMethodSignatureForSelector:), aSelector );
(NSMethodSignature *)methodSignatureForSelector: (SEL)aSelector
{
//DEBUGLOG( @"" );
id obj = [ self resolveTargetObject ];
if( obj == nil ){
Method instanceMethod = classgetClassMethod( self->targetObjectClass, @selector(instanceMethodSignatureForSelector:) );
IMP instanceMethodForSelectorIMP = methodgetImplementation( instanceMethod );
//AppleM1 NSMethodSignature *ret = instanceMethodForSelectorIMP( self->targetObjectClass, @selector(instanceMethodSignatureForSelector:), aSelector );
NSMethodSignature *ret = instanceMethodForSelectorIMP( self->targetObjectClass, @selector(instanceMethodSignatureForSelector:), aSelector );
return ret;
}
return [ obj methodSignatureForSelector: aSelector ];
}
What do you think about MacEggs.com ?