Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7187639
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T18:53:29+00:00 2026-05-28T18:53:29+00:00

I have a transparent web view which is a large rectangle. The webpage it

  • 0

I have a transparent web view which is a large rectangle. The webpage it loads has smaller rectangles that don’t fill the whole web view. So in those spaces not occupied by divs, you can see through the web view to whatever window or app is behind. Although you can see through, you can’t click through.
I need to be able to click through the web view in parts of it that don’t have active content.
Any ideas?

One of my ideas was have a transparent nsview on top of the web view, intercepting mouse downs , getting the coordinate, then referencing that coordinate in the web view and seeing if there is active content there, and if so, passing the mouse down event to the web view, but if not, ignoring it/passing it behind. This makes sense to me, but i don’t know how I would accomplish this…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T18:53:31+00:00Added an answer on May 28, 2026 at 6:53 pm

    You need to subclass WebView and implement the hitTest: method. In your method, you need to test to see if the mouse is in one of the “active” regions of your web view and if it is not, return the view’s next responder as the view passing the hit test.

    //assume activeRect is some rect in your view that you want to accept mouse clicks on
    
    - (NSView*)hitTest:(NSPoint)aPoint
    {
        if(NSPointInRect([self convertPoint:aPoint fromView:nil], activeRect))
        {
            //if the mouse is in an active area then just perform the default operation
            return [super hitTest:aPoint];
        }
        //otherwise return the next responder
        return (NSView*)[self nextResponder];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to have a single large UIView (for example a web view) which
The web designer has given me HTML which looks like: <div .... style=background: transparent
I have a little iPhone app that loads data from a web service. To
How can I show a web page in a transparent window and have the
I have a transparent rectangle on a picture box,if i click next,the next image
The problem I have a transparent NSView on a transparent NSWindow . The view's
We have two images with transparent sections that each have a map and separately
I have a panel with transparent background which i use to draw an image.
Anyone have experience with tools that can capture web traffic and create scriptable objects
My application I have an application design that looks like this: web application layer

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.