2 * To change this license header, choose License Headers in Project Properties.
3 * To change this template file, choose Tools | Templates
4 * and open the template in the editor.
6 package org.apidesign.demo.minesweeper;
8 import org.robovm.cocoatouch.foundation.NSURL;
9 import org.robovm.cocoatouch.foundation.NSURLRequest;
10 import org.robovm.objc.ObjCClass;
11 import org.robovm.objc.Selector;
12 import org.robovm.rt.bro.Bro;
13 import org.robovm.rt.bro.annotation.Bridge;
14 import org.robovm.rt.bro.annotation.Library;
16 @Library("Foundation")
22 private static final Selector requestWithURL$ = Selector.register("requestWithURL:");
23 @Bridge(symbol = "objc_msgSend")
24 private native static NSURLRequest objc_requestWithURL(ObjCClass __self__, Selector __cmd__, NSURL URL);
25 public static NSURLRequest requestWithURL(NSURL url) {
26 return objc_requestWithURL(ObjCClass.getByType(NSURLRequest.class), requestWithURL$, url);