Re: NSInvocation and methods with non-pointer parameters
Re: NSInvocation and methods with non-pointer parameters
- Subject: Re: NSInvocation and methods with non-pointer parameters
- From: Dave Keck <email@hidden>
- Date: Mon, 2 Nov 2009 01:12:33 -1000
> 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 you posted should work fine. There's no special treatment for
structures like CGPoint, other than needing to call -retainArguments
if you intend to delay the invocation past the existence of the
current stack frame.
It'd help if you posted more code.
_______________________________________________
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