• 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: Agent M <email@hidden>
  • Date: Sat, 11 Mar 2006 22:59:25 -0500


How do you figure that NSProxy is broken?

It is documented to implement exactly 4 class methods (and being a root class inherits nothing more) - and "+ description" is not one of them (like it is for NSObject).

It implements exactly what it says it does - just because it doesn't work like NSObject doesn't mean it's broken...

Even if you do implement +description, it doesn't fix the exception. Try it. Instead you have to implement a private method in a category.


What is really going on is that NSProxy's meta-class is in fact a weird NSProxy instead of an NSObject which I haven't been able to think of a rational explanation for. If you can think of one, please let us know- perhaps strict NSObject/NSProxy separation was the idea, but an NSProxy is useless without something to proxy...

-M

¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬
AgentM
email@hidden
¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬

_______________________________________________
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: glenn andreas <email@hidden>
References: 
 >Re: NSLog(@"%@",[NSProxy class]); (From: Greg Herlihy <email@hidden>)
 >Re: NSLog(@"%@",[NSProxy class]); (From: Philippe Mougin <email@hidden>)
 >Re: NSLog(@"%@",[NSProxy class]); (From: glenn andreas <email@hidden>)

  • Prev by Date: Re: Transparent windows (was Re: dock related question)
  • Next by Date: Re: Code to Run on Application Load
  • Previous by thread: Re: NSLog(@"%@",[NSProxy class]);
  • Next by thread: Re: NSLog(@"%@",[NSProxy class]);
  • Index(es):
    • Date
    • Thread