File:  [mozdev] / chimera / CHGetURLCommand.mm
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Thu Apr 18 09:48:18 2002 UTC (17 years, 7 months ago) by hyatt
Branches: MAIN
CVS tags: HEAD
adding support for opening of urls via applescript.  Thanks to Richard Schreyer and Nicholas Riley for sample code.

    1: //
    2: //  CHGetURLCommand.mm
    3: //  Chimera
    4: //
    5: //  Created by David Hyatt on Thu Apr 18 2002.
    6: //  Copyright (c) 2001 __MyCompanyName__. All rights reserved.
    7: //
    8: 
    9: #import "CHGetURLCommand.h"
   10: #import <AppKit/AppKit.h>
   11: 
   12: @implementation CHGetURLCommand
   13: 
   14: - (id)performDefaultImplementation {
   15:   [[NSApp delegate] openBrowserWindowWithURLString: [self directParameter]];
   16:   return nil;
   17: }
   18: @end

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>