Examples of NSObject


Examples of ca.weblite.objc.NSObject

*/
public class CocoaUtils {
   
   
    public static void dispatch_async(final Runnable r){
        (new NSObject("NSObject"){
            @Msg(selector="run", like="NSObject.finalize")
            public void run(){
                r.run();
            }
        }).send("performSelectorOnMainThread:withObject:waitUntilDone:", sel("run"), null, false);
View Full Code Here

Examples of ca.weblite.objc.NSObject

        }).send("performSelectorOnMainThread:withObject:waitUntilDone:", sel("run"), null, false);
    }
   
   
    public static void dispatch_sync(final Runnable r){
        (new NSObject("NSObject"){
            @Msg(selector="run", like="NSObject.finalize")
            public void run(){
                r.run();
            }
        }).send("performSelectorOnMainThread:withObject:waitUntilDone:", sel("run"), null, true);
View Full Code Here

Examples of com.dd.plist.NSObject

  public WebkitPage(NSDictionary page) {
    WIRTitleKey = page.objectForKey("WIRTitleKey").toString();
    WIRURLKey = page.objectForKey("WIRURLKey").toString();
    WIRPageIdentifierKey = Integer.parseInt(page.objectForKey("WIRPageIdentifierKey").toString());

    NSObject cnx = page.objectForKey("WIRConnectionIdentifierKey");
    WIRConnectionIdentifierKey = cnx == null ? null : cnx.toString();

  }
View Full Code Here

Examples of com.dd.plist.NSObject

    this.plistContent = read(source);
  }

  private Map<String, Object> read(File plist) {
    try {
      NSObject object = PropertyListParser.parse(plist);
      ApplicationInfo info = new ApplicationInfo(object);
      return info.getProperties();
    } catch (Exception ex) {
      throw new WebDriverException(
          String.format("In %s: Cannot parse %s: %s", source, plist.getAbsolutePath(), ex.getMessage()),
View Full Code Here

Examples of com.dd.plist.NSObject

    String res = template.replace("$json_encoded", s);
    return res;
  }

  public byte[] plistXmlToBinary(String msg) {
    NSObject object = null;
    try {
      object = XMLPropertyListParser.parse(msg.getBytes());
      return BinaryPropertyListWriter.writeToArray(object);
    } catch (Exception e) {
      throw new WebDriverException(e);
View Full Code Here

Examples of com.dd.plist.NSObject

  }

  public String plistBinaryToXml(byte[] binary) throws Exception {
    try {
      NSObject object = BinaryPropertyListParser.parse(binary);
      return object.toXMLPropertyList();
    } catch (Exception e) {
      return null;
    }
  }
View Full Code Here

Examples of org.robovm.apple.foundation.NSObject

  @Override
  public Map<String, ?> get () {
    Map<String, Object> map = new HashMap<String, Object>();
    for (NSString key : nsDictionary.keySet()) {
      NSObject value = nsDictionary.get(key);
      map.put(key.toString(), value.toString());
    }
    return map;
  }
View Full Code Here

Examples of org.robovm.apple.foundation.NSObject

  @Override
  public Map<String, ?> get () {
    Map<String, Object> map = new HashMap<String, Object>();
    for (NSString key : nsDictionary.keySet()) {
      NSObject value = nsDictionary.get(key);
      map.put(key.toString(), value.toString());
    }
    return map;
  }
View Full Code Here

Examples of org.robovm.apple.foundation.NSObject

  @Override
  public Map<String, ?> get () {
     Map<String, Object> map = new HashMap<String, Object>();
     for (NSString key : nsDictionary.keySet()) {
       NSObject value = nsDictionary.get(key);
       map.put(key.toString(), value.toString());
     }
     return map;
  }
View Full Code Here

Examples of org.robovm.cocoatouch.foundation.NSObject

  @Override
  public Map<String, ?> get () {
     Map<String, Object> map = new HashMap<String, Object>();
     for (NSString key : nsDictionary.keySet()) {
       NSObject value = nsDictionary.get(key);
       map.put(key.toString(), value.toString());
     }
     return map;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.