Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Opening links in new windows in Carbon?



On Oct 4, 2006, at 3:15 PM, Carreiro, Richard wrote:

After we thought about it more, we decided we didn't want to have
our embedded browser open another custom window when "Open Link in
New Window" was selected, but instead wanted it to launch the default
browser.  So I implemented the createWebViewWithRequest as
(error-checking
omitted):

- (WebView *)webView:(WebView *)sender
createWebViewWithRequest:(NSURLRequest *)request
{
    LSOpenCFURL((CFURLRef) [request URL], NULL);
    return nil;
}

Is this a reasonable way to do it? It does appear to work.

That seems OK. But the "policy delegate" is normally the way someone would do something like what you describe.


    -- Darin

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webkitsdk-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webkitsdk-dev/email@hidden

This email sent to email@hidden
References: 
 >RE: Opening links in new windows in Carbon? (From: "Carreiro, Richard" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.