Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Hello.
- If you frequent http://reddit.com/r/iOSThemes, I created [HTML]<a href="http://www.reddit.com/r/iOSthemes/comments/1xenq2/release_simplisticls_cydget_customize_with_16/">SimplisticLS</a>[/HTML] for Cydget. This makes use of preference loader. I see that you have worked pretty extensively with Cydget and was wondering if you could help me out. I have the following cycript code:
- [CODE]<script type="text/cycript">
- var EnableClock = new Boolean(true);
- var EnableCalendar = new Boolean(true);
- var EnableWeather = new Boolean(true);
- var locale = "";
- var city = "";
- var isFahrenheit = new Boolean(true);
- var useRealFeel = new Boolean(true);
- var format24 = new Boolean(false);
- var showampm = new Boolean(false);
- var showSeconds = new Boolean(false);
- var showYear = new Boolean(false);
- var fmonth = "short";
- var fweekday = "long";
- var fday = "number";
- var fdate = "mdy";
- var showWeatherIcon = new Boolean(true);
- var useWOEID = new Boolean(false);
- var wsource = "yahoo";
- var nlBack = new Boolean(false);
- var mcBottom = new Boolean(true);
- try{
- var main = [NSDictionary dictionaryWithContentsOfFile:@"/var/mobile/Library/Preferences/com.ibbignerd.simplisticls.plist"];
- alert("made it past main");
- if(main != null){
- if(main.showTime!=null){EnableClock = main.showTime;}
- if(main.format24!=null){format24 = main.format24;}
- if(main.showampm!=null){showampm = main.showampm;}
- if(main.showSeconds!=null){showSeconds = main.showSeconds;}
- if(main.showDate!=null){EnableCalendar = main.showDate;}
- if(main.showYear!=null){showYear = main.showYear;}
- if(main.fmonth!=null){fmonth = main.fmonth;}
- if(main.fweekday!=null){fweekday = main.fweekday;}
- if(main.fday!=null){fday = main.fday;}
- if(main.fdate!=null){fdate = main.fdate;}
- if(main.showWeather!=null){EnableWeather = main.showWeather;}
- if(main.showIcon!=null){showWeatherIcon = main.showIcon;}
- if(main.isFahrenheit!=null){isFahrenheit = main.isFahrenheit;}
- if(main.useRealFeel!=null){useRealFeel = main.useRealFeel;}
- if(main.locale!=null){locale = main.locale;}
- if(main.useWOEID!=null){useWOEID = main.useWOEID;}
- if(main.wsource!=null){wsource = main.wsource;}
- if(main.nlBack!=null){nlBack = main.nlBack;}
- if(main.mcBottom!=null){mcBottom = main.mcBottom;}
- }
- }catch(err){
- alert(err);
- }[/CODE]
- The issue is that it's throwing a "ReferenceError: Can't find variable: objc_msgSend" error on my "var main = ..." line.
- I thought it was not generating the file in /private/var/mobile/Library/Preferences, but it is. It is also populated...
- I should also note that it was working before I edited the foreground file. If you need any other information, please feel free to ask. I'm stumped.
- Also, thank you for taking the time to look into this. I know it's annoying to have people just randomly ask you for help. After I released SimplisticLS, I've been getting around 5-10 questions a day about the most random things. So I really appreciate it.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement