• 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
Transparent window misunderstood
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Transparent window misunderstood


  • Subject: Transparent window misunderstood
  • From: Kevin Kicklighter <email@hidden>
  • Date: Wed, 14 Sep 2005 11:20:11 -0400

Why must the internal webView must be transparent ? I want to see the webView (alpha = 1.0).
The setBackgroundColor is not a valid method for webView, tried it anyway and of course it doesn't work. WebView inherits from NSView.


Kevin


On Sep 14, 2005, at 2:48 AM, Lorenzo wrote:

Kevin,
more than the window, you have to make the internal webView transparent too.


    [webView setBackgroundColor:[NSColor colorWithCalibratedWhite:0.0
                      alpha:0.0]];

and since I presume that the webView is embedded within a NSScrollView,
you have to make the [webView enclosingScrollView] transparent too.


[[webView enclosingScrollView]setBackgroundColor:
[NSColor colorWithCalibratedWhite:0.0 alpha: 0.0]];


tell me whether it worked.

Best Regards
--
Lorenzo
email: email@hidden


From: email@hidden
Reply-To: email@hidden
Date: Tue, 13 Sep 2005 16:25:05 -0700 (PDT)
To: email@hidden
Subject: Cocoa-dev Digest, Vol 2, Issue 1363

------------------------------

Message: 6
Date: Tue, 13 Sep 2005 15:38:24 -0400
From: Kevin Kicklighter <email@hidden>
Subject: Transparent window
To: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed

I'm trying to use the WebKit to render web pages to the screen but
without a window background.  I can make an NSWindow that is
borderless (I don't need any window controls) and can do the
loadRequest into the main frame, display it and set the alpha value.
The only problem is that I can still see the background white
window , that the web page was put onto, which I don't want to see.
Can anyone tell me how to make the base image on the window
transparent, while the view that's placed in it is opaque?

Thanks,
Kevin.





_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Transparent window misunderstood
      • From: Lorenzo <email@hidden>
References: 
 >Re: Transparent window (From: Lorenzo <email@hidden>)

  • Prev by Date: Re: Cocoa for small applications
  • Next by Date: Re: How to add toolbar into Mail.App
  • Previous by thread: Re: Transparent window
  • Next by thread: Re: Transparent window misunderstood
  • Index(es):
    • Date
    • Thread