• 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: New Obj-C root class and forwarding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Beginner question with sheets
  • Next by Date: NSTextView linewrapping bugs?
  • Previous by thread: RE: New Obj-C root class and forwarding
  • Next by thread: Re: New Obj-C root class and forwarding
  • Index(es):
    • Date
    • Thread