Re: Quick Question: Can't alloc an NSInvocation?
Re: Quick Question: Can't alloc an NSInvocation?
- Subject: Re: Quick Question: Can't alloc an NSInvocation?
- From: Andrew Farmer <email@hidden>
- Date: Thu, 8 Sep 2005 21:50:06 -0700
On 08 Sep 05, at 16:49, Jerry Krinock wrote:
What's up with this? NSInvocation is a subclass of NSObject. Why
can't I
allocate one?
Because NSInvocation uses a different allocation method. Read the
docs...
+ (NSInvocation *)invocationWithMethodSignature:(NSMethodSignature *)
signature
Returns an NSInvocation object able to construct messages using
selectors described by signature. The new object must have its
selector set with setSelector: and its arguments set with
setArgument:atIndex: before it can be invoked.
Attachment:
PGP.sig
Description: This is a digitally signed message part
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden