• 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
NSProxy vs plain old NSObject
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSProxy vs plain old NSObject


  • Subject: NSProxy vs plain old NSObject
  • From: Jonathan Wight <email@hidden>
  • Date: Wed, 3 Dec 2003 11:29:49 -0600

I've created an NSProxy subclass that sends a notification out every
time a message is sent to it. It works fine except for one weird side
effect. If I execute 'NSLog(@"%@", theProxy)' it tries to call a method
called '_copyDescription' instead of 'description' (which I provided).
This is making debugging a little bothersome.

This made me wonder why I am using an NSProxy subclass over a NSObject
subclass. As far as I can tell either will work. So what are the
advantages NSProxy has over NSObject in situations like this?

Cheers.

Jon.

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.

  • Follow-Ups:
    • Re: NSProxy vs plain old NSObject
      • From: "Laurent Daudelin" <email@hidden>
  • Prev by Date: Re: Creating small controls programmatically
  • Next by Date: Re: Problems with Affine Transform
  • Previous by thread: RE: Cocoa / Obj-C and Zip files
  • Next by thread: Re: NSProxy vs plain old NSObject
  • Index(es):
    • Date
    • Thread