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

Re: NSProxy


  • Subject: Re: NSProxy
  • From: Nathan Day <email@hidden>
  • Date: Wed, 15 Jan 2003 18:05:42 +1030

My understanding (and I could be wrong) is the as well as handling memory allocation and deallocation any base class in Objecive-C also has to handle some interaction with the runtime system for the class to be useable (don't ask me what) if you tried to create your own base class you would have to implement all of that yourself. There is no reason your descendent class can't have an init method you will just have to make sure that you NSNumber is initialized by some other means other than by message forwarding.

On Wednesday, January 15, 2003, at 06:33 AM, The Amazing Llama wrote:

Going about my only idea for finding this memory leak (as mentioned in NSZombie, the other thread I just started), I'm implementing a class that pretends to be an NSNumber.

I figured that I should subclass from NSProxy. Then I looked at NSProxy and realized that it gave me no features at all, and as far as I can tell just makes my life interesting by selectively not implementing a few things; -init for example. So... what's the point of subclassing NSProxy? What DOES it give you, aside from bookkeeping?

Nathan Day
http://homepage.mac.com/nathan_day/
_______________________________________________
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: 
 >NSProxy (From: The Amazing Llama <email@hidden>)

  • Prev by Date: Re: windowcontroller neccessary?
  • Next by Date: Re: writeToFile and arrayWithContentsOfFile
  • Previous by thread: NSProxy
  • Next by thread: Re: NSProxy
  • Index(es):
    • Date
    • Thread