• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Quick Question: Can't alloc an NSInvocation?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Quick Question: Can't alloc an NSInvocation?
      • From: Jerry Krinock <email@hidden>
References: 
 >Quick Question: Can't alloc an NSInvocation? (From: Jerry Krinock <email@hidden>)

  • Prev by Date: RTF font parsing?
  • Next by Date: RE: Tracking Rect problem.
  • Previous by thread: Quick Question: Can't alloc an NSInvocation?
  • Next by thread: Re: Quick Question: Can't alloc an NSInvocation?
  • Index(es):
    • Date
    • Thread