CDesktopPeer.m revision 4632
b716b9cddcf2924b83c5ba2c21142cb4c626061fEvan Hunt * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
5d52a1fe1b8ea396fb5ae7f6f1567c8383445113Tinderbox User * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * This code is free software; you can redistribute it and/or modify it
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * under the terms of the GNU General Public License version 2 only, as
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * published by the Free Software Foundation. Oracle designates this
b716b9cddcf2924b83c5ba2c21142cb4c626061fEvan Hunt * particular file as subject to the "Classpath" exception as provided
b716b9cddcf2924b83c5ba2c21142cb4c626061fEvan Hunt * by Oracle in the LICENSE file that accompanied this code.
b716b9cddcf2924b83c5ba2c21142cb4c626061fEvan Hunt * This code is distributed in the hope that it will be useful, but WITHOUT
b716b9cddcf2924b83c5ba2c21142cb4c626061fEvan Hunt * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
b716b9cddcf2924b83c5ba2c21142cb4c626061fEvan Hunt * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
b716b9cddcf2924b83c5ba2c21142cb4c626061fEvan Hunt * version 2 for more details (a copy is included in the LICENSE file that
b716b9cddcf2924b83c5ba2c21142cb4c626061fEvan Hunt * accompanied this code).
b716b9cddcf2924b83c5ba2c21142cb4c626061fEvan Hunt * You should have received a copy of the GNU General Public License version
b716b9cddcf2924b83c5ba2c21142cb4c626061fEvan Hunt * 2 along with this work; if not, write to the Free Software Foundation,
9689922a0d936b04feb418fbaf4c1420f745ea58Mark Andrews * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
b716b9cddcf2924b83c5ba2c21142cb4c626061fEvan Hunt * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
9689922a0d936b04feb418fbaf4c1420f745ea58Mark Andrews * or visit www.oracle.com if you need additional information or have any
10966da999f8f7f364418aa446d8ead9c8a761cfMark Andrews * questions.
9689922a0d936b04feb418fbaf4c1420f745ea58Mark Andrews#import <ApplicationServices/ApplicationServices.h>
b716b9cddcf2924b83c5ba2c21142cb4c626061fEvan Hunt#import <JavaNativeFoundation/JavaNativeFoundation.h>
status = LSOpenURLsWithRole((CFArrayRef)[NSArray arrayWithObject:url], kLSRolesAll, NULL, ¶ms, NULL, 0);
return status;
url = (NSURL *)CFURLCreateWithFileSystemPath(NULL, (CFStringRef)[url path], kCFURLPOSIXPathStyle, false);
status = LSOpenURLsWithRole((CFArrayRef)[NSArray arrayWithObject:url], kLSRolesAll, NULL, ¶ms, NULL, 0);
return status;