Re: Getting IB_DESIGNABLE to work properly


Gary L. Wade
 

You do want your subviews drawn, right?

On Mar 4, 2018, at 4:12 PM, Graham Cox <graham@...> wrote:



On 5 Mar 2018, at 10:46 am, Gary L. Wade <garywade@...> wrote:

Looking at the code, it appears you’re missing a call to [super drawRect:dirtyRect] in your own drawRect: method.


I’ve never called super, nor understand why it would be needed. I know the boilerplate calls it, but it appears to do nothing.

If there has been a change in the recommendation for this since 10.2 or so, then I missed it.

—Graham

Join cocoa@apple-dev.groups.io to automatically receive all group messages.