Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • Just reading your last line and letting you know why that wouldn't work for testing purposes: Another weird thing is that even if my subclass implementations of -[drawTextInRect] and -[drawRect] are completely empty (not even a call to super), the textfield's text is drawn. Commented Jan 8, 2010 at 17:31
  • if you don't call super it's more like overriding a method and providing a custom implementation - a method does nothing in such case altering the default behavior. There is no reason for compiler to "optimize" a code by removing an empty methods implementation in subclasses for such cases. Disclaimer: I didn't vote down :) Commented Apr 8, 2016 at 23:32