Re: [Q] Using NSInvocation vs. selector with NSTimer
Re: [Q] Using NSInvocation vs. selector with NSTimer
- Subject: Re: [Q] Using NSInvocation vs. selector with NSTimer
- From: Joar Wingfors <email@hidden>
- Date: Sun, 17 Oct 2010 16:11:34 -0700
On 17 okt 2010, at 15.51, JongAm Park wrote:
> Although I know that NSInvocation was added (from Leopard?), I didn't use it much.
NSInvocation predates Mac OS X...
> Is there any benefit in using it? My guess is that an NSInvocation instance is used repeatedly, but using the "selector" based method is not inconvenient for the most of cases.
> Is there any other benefit in using the NSInvocation?
NSInvocation is a very flexible class, and can be used for a wide variety of tasks, but it is also (therefore) more cumbersome to setup and use for the simpler things that you mention. It is not often used, so if you don't know that you need it, you probably don't.
j o a r
_______________________________________________
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