Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 2    Views: 51

bobisback
Code is Art
Profile
Posts: 24
Reg: Sep 22, 2012
Pensacola
1,540
12/19/13 04:02 PM (11 years ago)

App Delegate: Making it generic on plugins

Hello all, I did a search for this over the last 30mins did not find anything that seemed to be what I was looking for. I am using the app delegate in one of my plugins and I noticed that when I get a reference to it that I have to call it by the name of my delegate. When I upload this to the plugin market and someone else puts this into there project the name of there app delegate will be different. So how do I make a call to the app delegate yet keep it generic so it does not blow up in other peoples apps? I am trying to do a screen segue btw. Thanks, Sean
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
12/19/13 04:11 PM (11 years ago)
When you upload a plugin, you need to change the name of the appDelegate to "BT_appDelegate". Buzztouch will then take care of changing the "BT" to the name of whatever project is being downloaded.
 
bobisback
Code is Art
Profile
Posts: 24
Reg: Sep 22, 2012
Pensacola
1,540
like
12/19/13 04:12 PM (11 years ago)
perfect thanks not sure why I missed this...
 

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.