• 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: NSLog(@"%@",[NSProxy class]);
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSLog(@"%@",[NSProxy class]);


  • Subject: Re: NSLog(@"%@",[NSProxy class]);
  • From: Philippe Mougin <email@hidden>
  • Date: Sun, 12 Mar 2006 01:03:17 +0100

Agent M wrote:
> I have come across a difficulty with an NSProxy subclass
> on 10.3.9 which can be summed up with the following lines:
>
> Class p=[NSProxy class];
> NSLog(@"class %@",p);
>
> The second line throws an exception:
> *** Uncaught exception: <NSInvalidArgumentException>
> *** -[NSProxy methodSignatureForSelector:] called!

Actually this is a general problem. Briefly, the whole meta level of the NSProxy class hierarchy is broken, making the NSProxy class object non-functional. The problem comes from the fact that, in the current (broken) implementation, NSProxy's meta class inherits from the NSProxy class. This mimics the NSObject class system layout, but while this layout is correct for NSObject, it is not correct for NSProxy because of the differences in semantic between the concept of an object an the concept of a proxy.

Executive summary: the NSProxy class object is broken. Do not use it, or write workarounds (like you did) to support the functionality you need.

Best,

Philippe Mougin
http://www.fscript.org

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSLog(@"%@",[NSProxy class]);
      • From: Greg Herlihy <email@hidden>
  • Prev by Date: Re: NSURLConnection timing out without delegate getting connection:didFailWithError: callback
  • Next by Date: Code to Run on Application Load
  • Previous by thread: Re: NSLog(@"%@",[NSProxy class]);
  • Next by thread: Re: NSLog(@"%@",[NSProxy class]);
  • Index(es):
    • Date
    • Thread