Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 13    Views: 132

GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
10/29/12 05:32 PM (13 years ago)

Notepad Plugin Update

Hi, This may or may not be necessary for some of you, but if you are using the Notepad Feature Plugin, you should download your source again for two reasons: * Changes to BT_fileManager.m ensure that user created documents like your notes are saved to the NSDocumentDirectory instead of NSCachesDirectory, per the announcement earlier by @David. This follows the Apple guidelines, and ensures you won't get rejected for that reason. * You may have a version of the notepad_feature.m file that doesn't add the "persist_" suffix to the name of the file that gets created when the user creates notes. If you don't have that, and the user does a refresh/update of the app, then the note file will get deleted, and the user will loose their notes. The notepad_feature.m file you want should have the following in it around Line 60. //saveAsFileName is this screen's itemId appended to "persist_[itemId]" [self setSaveAsFileName:[NSString stringWithFormat:@"persist_%@.txt", [screenData itemId]]]; If that isn't there, then you for sure need to download the latest package. Sorry if this causes any problems for people. Let me know if you have any questions! Mark
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
10/29/12 05:47 PM (13 years ago)
Good man! Have this as a key feature in app I'm developing for someone. Thou art a star!
 
Tony @ Buzztouch
buzztouch Evangelist
Profile
Posts: 528
Reg: Mar 05, 2011
Saint Louis, Mi...
24,620
like
10/29/12 07:37 PM (13 years ago)
:)
 
0z2000tv
Aspiring developer
Profile
Posts: 315
Reg: Sep 10, 2011
Nashville
11,950
like
10/30/12 07:43 AM (13 years ago)
GoNorthWest I apologize I am code/tech dumb or at least very dense. Using you plug-in in an APP created in BT-2.0 (not self hosted) what do I need to do? Mike
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
10/30/12 08:22 AM (13 years ago)
Hi Mike, You just need to purchase the plugin from the plugin market, and it'll automatically be installed in your control panel. Then you just use it like any other screen for your app! Mark
 
0z2000tv
Aspiring developer
Profile
Posts: 315
Reg: Sep 10, 2011
Nashville
11,950
like
10/30/12 08:31 AM (13 years ago)
Hi Mark, I purchased your plugin the day it was released. 2 Weeks Ago I added it to the APP I am developing in BT-2.0 (not self hosted) Your plugin is in my control panel and has been complied in xcode already in my app. Do I need to do anything? I warned you I was dense, Sorry. Mike
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
10/30/12 09:18 AM (13 years ago)
Hi Mike, Not a problem at all! I'd suggest downloading your source again, overwriting the BT_Core/BT_fileManager.m file, and all the notepad_feture plugin files, and then recompiling your app. Make sure to do a Product...Clean within Xcode as well. That should take care of everything! Mark
 
buzzbt
Android Fan
Profile
Posts: 233
Reg: Nov 14, 2011
las vegas
6,530
like
10/30/12 10:57 AM (13 years ago)
Hi GoNorthWest! Thank you for the Update. I Submitting my App to iTunes with notepad in it waiting for approval probably if its rejected or approved i have to Update it and Re-Submit the app. my questions is 1, is there any update for android? or this is for ios only? 2, do i have to download the source code again it seems when i replace the persist code it is working good . Thanks Mark! //saveAsFileName is this screen's itemId appended to "persist_[itemId]" [self setSaveAsFileName:[NSString stringWithFormat:@"persist_%@.txt", [screenData itemId]]];
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
10/30/12 11:06 AM (13 years ago)
Hello! This is for iOS only. If you already have the persists portion of the code, then no reason to update that file. You will want to update BT_fileManer.m though because it changes the place where notes are stored, per Apple requirements. Mark
 
buzzbt
Android Fan
Profile
Posts: 233
Reg: Nov 14, 2011
las vegas
6,530
like
10/30/12 01:10 PM (13 years ago)
ok thanks!
 
Shacksy
Apple Fan
Profile
Posts: 33
Reg: Sep 07, 2011
Faversham
1,980
like
11/16/12 03:55 PM (13 years ago)
Has anyone else noticed that the words start typing under the top navigation bar? I would hide the nav bar but then you would lose the Edit button. Any ideas? Thanks in advance
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/16/12 03:57 PM (13 years ago)
I've never seen that happen before! * Android, iOS, or both? * Actual device, or simulator/emulator? Mark
 
0z2000tv
Aspiring developer
Profile
Posts: 315
Reg: Sep 10, 2011
Nashville
11,950
like
11/16/12 07:05 PM (13 years ago)
In IOS if the Nav bar is transparent instead of solid it will happen. Change to solid Nav Bar and it will likely be fine. Mike
 
Shacksy
Apple Fan
Profile
Posts: 33
Reg: Sep 07, 2011
Faversham
1,980
like
11/17/12 01:32 AM (13 years ago)
GoNorthWest - I was having issues with iOS. Took Oz2000tv advise, changed the nav bar to solid and it now works a treat. Thank you guys for taking the time to help me. Have a great weekend p.s Great plugin by the way
 

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.