Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 18    Views: 121

Jefe
Aspiring developer
Profile
Posts: 53
Reg: Dec 11, 2012
Colorado Spring...
5,230
05/14/13 06:42 AM (12 years ago)

Plug-in Development Error

I went through the "Let's Build a Plug-in" Webinar (it took about 4 hours to get through the 1 1/2 hour long presentation). I followed each step exactly, and made sure all of my code looked exactly the same as David's. Towards the end, when it came time to populating the warning the comes up if the user clicks the disAgree button, based on the information entered in the control panel, is where I ran into problems. I entered the following code: alertText = [BT_strings getJsonPropertyValue:self.screenData.jsonVars:@"alertText":@"Finish setting up this screen in your control panel"]; alertTitle = [BT_strings getJsonPropertyValue:self.screenData.jsonVars:@"alertTitle":@"You must agree!"]; and get an error stating: Class method'+getJsonPropertyValue:::'not found (return type defaults to 'id') Any ideas? I am guessing it is stating it cannot find the "getJsonPropertyValue" method, but according to the video, that method is defined in "Core" folder. Am I missing something obvious? Thank you for your help!
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
05/14/13 06:55 AM (12 years ago)
Have you tried putting a self. in front of the alertText and alertTitle? Jake
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
05/14/13 07:19 AM (12 years ago)
The code changed at bit. Once I'm at the computer I'll post. I believe is NameOfProperty.. And DefaultValue that needs to be added check other plugins for those keywords and you'll see what I'm talking about
 
Jefe
Aspiring developer
Profile
Posts: 53
Reg: Dec 11, 2012
Colorado Spring...
5,230
like
05/14/13 07:41 AM (12 years ago)
@mysps You're a life saver! That's exactly what it was...I had tried copying some other strings, but I think they were too difficult for what I was trying to do (the had "if" preceding them). Thank you for the help!!
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
05/14/13 09:12 AM (12 years ago)
perfect! glad i could help.
 
aquila198
buzztouch Evangelist
Profile
Posts: 473
Reg: Jul 22, 2011
location unknow...
10,330
like
05/14/13 09:29 AM (12 years ago)
Hi Jefe - Would you mind posting the revised code? It would be great to see (once I get around to making that fun bug-zapper plug-in). Thanks!
 
Jefe
Aspiring developer
Profile
Posts: 53
Reg: Dec 11, 2012
Colorado Spring...
5,230
like
05/14/13 10:10 AM (12 years ago)
For sure! alertTitle = [BT_strings getJsonPropertyValue:self.screenData.jsonVars nameOfProperty:@"alertTitle" defaultValue:@"Title"]; alertText = [BT_strings getJsonPropertyValue:self.screenData.jsonVars nameOfProperty:@"alertText" defaultValue:@"This is the text that will show by default"];
 
aquila198
buzztouch Evangelist
Profile
Posts: 473
Reg: Jul 22, 2011
location unknow...
10,330
like
05/14/13 10:17 AM (12 years ago)
Thanks!!
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
05/14/13 10:56 AM (12 years ago)
Hey @Jefe, What webinar is that because I cannot find it? LA
 
Red Dog
buzztouch Evangelist
Profile
Posts: 805
Reg: Jun 16, 2011
Southern Califo...
18,800
like
05/14/13 11:14 AM (12 years ago)
Hey LA. I think he is referring to this; http://www.youtube.com/watch?v=OJrMVTn8z0s
 
Jefe
Aspiring developer
Profile
Posts: 53
Reg: Dec 11, 2012
Colorado Spring...
5,230
like
05/14/13 12:43 PM (12 years ago)
Hey LA, It is the webinar Red Dog cited
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
05/14/13 01:44 PM (12 years ago)
Jefe - did you get the issue resolved?
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
05/14/13 02:14 PM (12 years ago)
Thank you! LA
 
Jefe
Aspiring developer
Profile
Posts: 53
Reg: Dec 11, 2012
Colorado Spring...
5,230
like
05/14/13 03:32 PM (12 years ago)
@chris1 - I did, thank you! Has anyone written any code for the UIPicker? And more importantly...are you willing to share? I've done a few tutorials, and think I'm on the right track, but working code to compare mine to would be fantastic! I'm also trying to figure out how to incorporate a settings screen in app, and how to allow the user to control certain settings. Any ideas/suggestions would be greatly appreciated!!
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
05/14/13 03:55 PM (12 years ago)
I have - if you can wait a couple weeks we can talk ;)
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
05/14/13 04:13 PM (12 years ago)
Hey guys, I'm following the same webinar for IOS and my simulator is not showing the refresh button like Davids..any suggestions? LA
 
Jefe
Aspiring developer
Profile
Posts: 53
Reg: Dec 11, 2012
Colorado Spring...
5,230
like
05/14/13 05:02 PM (12 years ago)
@chris1 - I did, thank you! Has anyone written any code for the UIPicker? And more importantly...are you willing to share? I've done a few tutorials, and think I'm on the right track, but working code to compare mine to would be fantastic! I'm also trying to figure out how to incorporate a settings screen in app, and how to allow the user to control certain settings. Any ideas/suggestions would be greatly appreciated!!
 
Jefe
Aspiring developer
Profile
Posts: 53
Reg: Dec 11, 2012
Colorado Spring...
5,230
like
05/14/13 05:04 PM (12 years ago)
Shoot! I didn't mean to submit that again. Ugh. Chris...I certainly can...I just don't want to! Haha! It's addicting once you start to figure things out! LA - did you change anything in the nav bar field?
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
05/14/13 05:09 PM (12 years ago)
@Jefe, No I was just following him. I cannot even get the simple menu to show up after I changed it back. Then I closed that project then downloaded a app from bt and ran it and it's going back to that same screen. LA
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.