NSProxy does not implement hidden selectors

Originator:lukes.dylan
Number:rdar://10605854 Date Originated:20-Dec-2011 02:32 AM
Status:Open Resolved:
Product:Mac OS X SDK Product Version:
Classification:Serious Bug Reproducible:Yep
 
20-Dec-2011 02:32 AM Dylan Lukes:
Summary: NSObject apparently defaults four methods (isNSString__, isNSData__, isNSDictionary__, and isNSArray__) to return NO values. These seem to be used for performance hacks in NSDictionary. Sadly these are not implemented in NSProxy, since NSProxy is a root class as well.

Steps to Reproduce:

Attempt to add an NSProxy (or by extension any subclass such as NSDistantObject) to an NSDictionary.

Expected Results:

It should add it to the dictionary.

Actual Results:

It throws an exception.

Regression:

Notes:

NSProxy may not be the only root class affected.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!