• 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: WebView drawRect
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WebView drawRect


  • Subject: Re: WebView drawRect
  • From: Leonardo <email@hidden>
  • Date: Fri, 21 Mar 2014 17:01:08 +0100
  • Thread-topic: WebView drawRect

I understand the point. I have added the view to another view. It works.
Anyway, how can I flip horizontally the webView?
I can't act from within its drawRect method.
I can't act from within its frameView's drawRect method because I can't
replace its frameView.
I can't flip its superview from its drawRect method because the
transformation doesn't affect the subviews. It looks as an opaque object.
I am really puzzled.


Regards
-- Leonardo



Da: Jens Alfke <email@hidden>
Data: Wed, 19 Mar 2014 14:34:04 -0700
A: Leonardo <email@hidden>
Cc: <email@hidden>
Oggetto: Re: WebView drawRect


On Mar 19, 2014, at 12:34 PM, Leonardo <email@hidden> 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 (email@hidden)

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:

This email sent to email@hidden


References: 
 >Re: WebView drawRect (From: Jens Alfke <email@hidden>)

  • Prev by Date: Simulating sublayers in CATiledLayer
  • Next by Date: Re: Simulating sublayers in CATiledLayer
  • Previous by thread: Re: WebView drawRect
  • Next by thread: Re: WebView drawRect
  • Index(es):
    • Date
    • Thread