• 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: NSNumber subclassing oddity
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSNumber subclassing oddity


  • Subject: Re: NSNumber subclassing oddity
  • From: Jérome Foucher <email@hidden>
  • Date: Mon, 8 Dec 2003 15:16:45 +0100

On 8 dic. 03, at 15:13, Clark Cox wrote:

blah blah blah....

When I call :
id object = [[XRBoolean alloc] initWithInt:2];

I receive the following error :
*** initialization method -initWithInt: cannot be sent to an abstract
object of class XRBoolean: Create a concrete instance!


I don't really understand. XRBoolean is not an abstract calls (at least
to me)

No, but NSNumber is. NSNumber is a class-cluster. Check out: http://developer.apple.com/documentation/Cocoa/Conceptual/Foundation/ Concepts/ClassClusters.html

Oh, that explains a lot of things....

Thanks !!!!

Jirome
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >NSNumber subclassing oddity (From: Jérome Foucher <email@hidden>)
 >Re: NSNumber subclassing oddity (From: Clark Cox <email@hidden>)

  • Prev by Date: Re: NSNumber subclassing oddity
  • Next by Date: Re: Using NSWindowDidChangeScreenNotification
  • Previous by thread: Re: NSNumber subclassing oddity
  • Next by thread: Using NSWindowDidChangeScreenNotification
  • Index(es):
    • Date
    • Thread