Re: NSNumber subclassing oddity
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.