Frequently Asked Questions

Q:

I'd like to programmatically invoke OmniWeb with a URL.

A:

Here's a small C function that will open the URL string you pass in:

#import <appkit/appkit.h>

void openURL(const char *urlString)

{

Pasteboard *pasteboard;

pasteboard = [Pasteboard newName:"OmniWebPasteboard"];

[pasteboard declareTypes:&NXAsciiPboardType num:1 owner:nil];

[pasteboard writeType:NXAsciiPboardType

data:urlString length:strlen(urlString)+1];

NXPerformService("OmniWeb/Open URL", pasteboard);

}

Valid for 2.0



Product literature and demonstration software are available. For more information about this or any other Lighthouse Design product, send e-mail to info@lighthouse.com.