Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 5    Views: 74

Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
02/16/14 12:22 AM (11 years ago)

Notes Plugin Deleted Files

Hi All, I just had an app approved with the Notepad Feature plugin, and users are stating that their notes have been erased? Any ideas? Thanks, Jake
 
tb
buzztouch Evangelist
Profile
Posts: 2050
Reg: Nov 03, 2011
Oxford
32,300
like
02/16/14 06:50 AM (11 years ago)
I know one app with it, although it's not mine. The app by Chris Growder (LevensGardener) is a good example of lots of plugins: https://itunes.apple.com/gb/app/levens-garden/id622347091?mt=8&ign-mpt=uo%3D4
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
02/16/14 09:08 AM (11 years ago)
@Everyone: I ended up creating my own saving method which uses NSUserDefaults and also saves it as a text file. If you are concerned with how the iTunes Update works, you can simulate it by distributing the app to a device through iTunes with an AdHoc distribution. Jake
 
Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
like
02/16/14 05:47 PM (11 years ago)
Hey Jake, do you have an example code of how to do that with NSUserDefaults? Understandable if not, but thought I'd ask. Thanks
 
buzzbt
Android Fan
Profile
Posts: 233
Reg: Nov 14, 2011
las vegas
6,530
like
02/16/14 05:48 PM (11 years ago)
Hi are you using the update version? if you dont, you should download your source again the new one is working for me good. her is Marks .. "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 " https://www.buzztouch.com/forum/thread.php?tid=A880C3FDC88A5B216BA1672&command=isSearching&currentPage=1&topicTitle=Notepad&createdBy=&repliedBy=&minViews=-1&maxViews=-1&minReplies=-1&maxReplies=-1&forumCategory=
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
02/16/14 06:04 PM (11 years ago)
@BuzzBT: But it looks like this was posted a year ago? Jake
 

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.