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 8269479
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T06:14:20+00:00 2026-06-08T06:14:20+00:00

How do I enable clicking on links in my mac osx webview? I have

  • 0

How do I enable clicking on links in my mac osx webview?

I have the following code but I don’t know what methods to implement for the policy delegate…

@synthesize myWebView = _myWebView;

- (void)applicationDidFinishLaunching:(NSNotification *)aNotification


    /* webview setup here, everything works fine 
    except cannot click links in webview..... */


    //setup my delegate
    _myWebView.policyDelegate = self;

}
//Now what?....

Thanks.

  • 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-06-08T06:14:23+00:00Added an answer on June 8, 2026 at 6:14 am

    WebView doesn’t have restriction on links.

    But if you need a custom behavior when clicking on a link in your web view, you should implement “webView:decidePolicyForNavigationAction:request:frame:decisionListener:” in your policy delegate. Then you you get the action type from the action information dictionary and you do your custom behavior if it’s a link clicked event.

    Example:

    - (void)webView:(WebView *)webView decidePolicyForNavigationAction:(NSDictionary *)actionInformation request:(NSURLRequest *)request frame:(WebFrame *)frame  decisionListener:(id < WebPolicyDecisionListener >)listener
    
    {
    
        NSUInteger actionType = [[actionInformation objectForKey:WebActionNavigationTypeKey] unsignedIntValue];
        if (actionType == WebNavigationTypeLinkClicked) {
            //Do your stuff
        } else {
            [listener use];
        }
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i enable hl-mode in global scope with the following code. (global-hl-line-mode t) to turn
I have a radiobutton set called 'daypattern'. Clicking on it should enable the checked
I would like to enable SOAP on my PHP5/Centos/Apache server. I have full access
How to enable Out-GridView in a function. I mean, Hello | Out-GridView Works. But
How can I enable an extension on a Three.js shader? My code so far:
I have a webpage at http://www.optiekmeulemeester.be/normal with sliding navigation. This happens with the following
I want to enable code coverage for some unit test in my solution. After
I want to have a table with clickable rows that upon clicking will redirect
I have a question. I use jquery superfish menu with the following structure <div
I am trying to enable a JButton when clicking Ctrl+A in a Jtable to

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.