NSProxy vs plain old NSObject
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.