On Mar 19, 2014, at 12:34 PM, Leonardo <mac.iphone....@gmail.com> wrote:
> [mWebView drawRect:rect]; It’s _never_ correct to call another view’s drawRect method. (Or to call -drawRect directly at all, really. Except for a ‘super’ call inside your own -drawRect.) When I want to swap out two views like this, I usually add them to an NSTabView and then set the tab display style to ‘none’. That way I can swap tabs programmatically to display one view or the other. —Jens _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com