FROM : Axel Andersson
DATE : Sat Apr 30 20:45:41 2005
On Apr 30, 2005, at 19:46, Daniel Jalkut wrote:
> If you're overriding a class completely, then it strikes me that
> you shouldn't be a subclass of that class.
>
> What if you are just a subclass of NSObject and use poseAs: to
> "override" the other class?
A good idea, but in this case I need instance variables, so I piggy-
back on existing ivars in the class I'm overriding. I know I'm
stepping in unsupported territory here, but the original question was
just about the warning and how to turn it off (as every other warning
has a -Wno- equivalent in gcc), and I've already answered that
myself, but thanks anyway.
--
Axel Andersson
<email_removed>
http://www.zankasoftware.com/
DATE : Sat Apr 30 20:45:41 2005
On Apr 30, 2005, at 19:46, Daniel Jalkut wrote:
> If you're overriding a class completely, then it strikes me that
> you shouldn't be a subclass of that class.
>
> What if you are just a subclass of NSObject and use poseAs: to
> "override" the other class?
A good idea, but in this case I need instance variables, so I piggy-
back on existing ivars in the class I'm overriding. I know I'm
stepping in unsupported territory here, but the original question was
just about the warning and how to turn it off (as every other warning
has a -Wno- equivalent in gcc), and I've already answered that
myself, but thanks anyway.
--
Axel Andersson
<email_removed>
http://www.zankasoftware.com/
| Related mails | Author | Date |
|---|---|---|
| No related mails found. | ||






Cocoa mail archive

