Converting Java to objective C -


i'm trying convert java code objective-c. class below extension of testcoderequest. wondering how convert objective c equivalent. i'm finding bit confusing because java statically typed, , configuration on convention. whereas objective-c dynamically typed, , convention on configuration. have sample code below. small hint should great.

package com.testcode.api;  import java.io.ioexception;  import oauth.signpost.exception.oauthcommunicationexception; import oauth.signpost.exception.oauthexpectationfailedexception; import oauth.signpost.exception.oauthmessagesignerexception;  import org.json.jsonobject;  public class categories extends testcoderequest {      public categories(string apikey, string apisecret) {             super(apikey, apisecret, "categories");     }      public categories field(object... fields) {         super.field(fields);         return this;     }      public jsonobject getcategories() throws oauthmessagesignerexception, oauthexpectationfailedexception, oauthcommunicationexception, ioexception {         return this.get();     }      public categories categoriesfield(object... fields) {         return this.field(fields);     }  } 

there several java objective c translators. code that simple, of them should work. translators have lot of trouble translating calls runtime libraries because of divergent philosophies (especially in area of look-and-feel , user interaction). job here, need go syntax semantics, , extremely difficult software do.

your phrase "java statically typed, , configuration on convention. whereas objective-c dynamically typed, , convention on configuration" can't refer this. gui development. aspect of languages not intrinsic them, belongs libraries developers employ, in many cases dependent on specific operating systems. so, not talking converting java objective c of converting swing look-and-feel , mode of interaction ios one.

all considered, i'd recommend use automatic conversion tools learning tools. see generated pieces of code (as become more complex and/or incorporate user interfaces) if work, not suitable maintenance or further development , need re-coded if not redesigned. again, learning tools useful.


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -