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: Ryan Britton <email@hidden>
- Date: Thu, 8 Sep 2005 20:14:21 -0700
Because it's impossible to use an NSInvocation instance in the method
it's intended without setting the method signature. The only exposed
accessor to do this is through the class method
invocationWithMethodSignature:
It's not consistent with every other NS* class, but my guess is
there's a lot more going on inside that requires that the method
signature only be able to be set once.
On Sep 8, 2005, at 4:49 PM, Jerry Krinock wrote:
There must be some fundamental misconception in my understanding of
Objective-C:
NSObject* bigO = [[NSObject alloc] init] ;
NSLog(@"address of bigO=%x", bigO) ;
NSInvocation* bigI = [[NSInvocation alloc] init] ;
NSLog(@"address of bigI=%x", bigI) ;
CONSOLE OUTPUT:
address of bigO=3a6ee0
address of bigI=0
What's up with this? NSInvocation is a subclass of NSObject. Why
can't I
allocate one?
Jerry
_______________________________________________
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
_______________________________________________
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