On Nov 2, 2009, at 2:17 AM, Jim Kang wrote:
> I seem to be able to use NSInvocation to execute methods that have
> parameters are pointers, like NSString* or NSDictionary*, but when I try to
> invoke a method with a parameter that is not a point, like this -
>
> (void)methodWithCGPoint: (CGPoint)
Argh. I actually had invalid arguments, and there was indeed nothing wrong
with the invocation code itself. Thanks for attempting to help! I'll make
sure I'm less tired next time I post.
___
Cocoa-dev mailing list ([email protected])
Please do n
> sig = [[self class] instanceMethodSignatureForSelector:sel];
See -methodSignatureForSelector.
> What is the correct way to set the CGPoint argument to NSInvocation? The
> CGPoint can't get released before the invocation is finished, so [invocation
> retain] doesn't help.
The code yo
I seem to be able to use NSInvocation to execute methods that have
parameters are pointers, like NSString* or NSDictionary*, but when I try to
invoke a method with a parameter that is not a point, like this -
(void)methodWithCGPoint: (CGPoint)pos;
- I get an EXC_BAD_ACCESS when I run it with cod