Re: New Obj-C root class and forwarding
Re: New Obj-C root class and forwarding
- Subject: Re: New Obj-C root class and forwarding
- From: petite_abeille <email@hidden>
- Date: Tue, 18 Mar 2003 17:33:25 +0100
On Tuesday, Mar 18, 2003, at 08:27 Europe/Zurich, Christopher Sean
Morrison wrote:
2) Can anyone explain how to get what I'm attempting to do to work
without
subclassing off of a root class/interface?
Your best bet is to implement the NSObject protocol... but if that's
not option... good luck :-)
As mentioned by Jean-Daniel Dupas, GNUstep can be of some help:
http://www.gnustep.org/resources/sources.html
gnustep-base-1.5.2 is where NSFoundation is implemented. Check NSObject
and NSProxy for 'guidance'.
There is a couple of other root classes in Cocoa: NSFault,
NSInvocationBuilder, NSLeafProxy, Object, _NSZombie and such. At a bare
minimum you should implement -forward:: and -forwardInvocation: I
guess. But you will be much better off implementing the NSObject
protocol one way or another.
Have fun.
Cheers,
PA.
_______________________________________________
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.