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

Re: Transparent window


  • Subject: Re: Transparent window
  • From: Lorenzo <email@hidden>
  • Date: Wed, 14 Sep 2005 08:48:36 +0200

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:
    • Transparent window misunderstood
      • From: Kevin Kicklighter <email@hidden>
  • Prev by Date: [ANN] XGridFoundation article online
  • Next by Date: Re: Obtain available disk space?
  • Previous by thread: Transparent window
  • Next by thread: Transparent window misunderstood
  • Index(es):
    • Date
    • Thread