• 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
Quick Question: Can't alloc an NSInvocation?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Quick Question: Can't alloc an NSInvocation?


  • Subject: Quick Question: Can't alloc an NSInvocation?
  • From: Jerry Krinock <email@hidden>
  • Date: Thu, 08 Sep 2005 16:49:56 -0700

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

  • Follow-Ups:
    • Re: Quick Question: Can't alloc an NSInvocation?
      • From: Andrew Farmer <email@hidden>
    • Re: Quick Question: Can't alloc an NSInvocation?
      • From: Ryan Britton <email@hidden>
  • Prev by Date: draw selected NSSegmentedControl image?
  • Next by Date: Re: Detecting memory leaks
  • Previous by thread: Re: draw selected NSSegmentedControl image?
  • Next by thread: Re: Quick Question: Can't alloc an NSInvocation?
  • Index(es):
    • Date
    • Thread