Discussion Forums  >  Buzztouch News and Announcements

Replies: 9    Views: 147

David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
10/29/12 10:13 AM (13 years ago)

BT_fileManager.m Updated

The BT_fileManager.m class file that ships with project downloads (iOS) has been updated. This file was using the NSCachesDirectory to save text files (like JSON data files) while the app ran. Saving these allowed some screens to work "offline" after downloading some required data. iOS and Apple recommend that this directory NOT be used. In some cases, apps were being rejected because it was being used. Ouch. The changes relate to where your buzztouch project saves text files now, they are saved in the NSDocumentDirectory now. You will need to re-download the source code for your projects to take advantage of this change. The only behavior difference you'll notice is that the "cached" files from your app will persist after doing iOS updates (like from 5.0 to 6.0). You end users will not "lose" their cached data after doing updates.
 
coderx
Veteran developer
Profile
Posts: 433
Reg: Oct 29, 2011
Ontario, Canada
8,680
like
10/29/12 10:19 AM (13 years ago)
Excellent, thanks. How about self-hosted? Or has that package been upgraded as well (so just download, grab the file and replace)?
 
LeonG
Apple Fan
Profile
Posts: 694
Reg: Nov 08, 2011
Hamburg
17,740
like
10/29/12 10:19 AM (13 years ago)
very nice, thx!
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
10/29/12 10:21 AM (13 years ago)
@coderx: Self hosted pulls this file from the buzztouch API...this means it is updated when download source code for projects.
 
coderx
Veteran developer
Profile
Posts: 433
Reg: Oct 29, 2011
Ontario, Canada
8,680
like
10/29/12 10:33 AM (13 years ago)
Got it. Thank you David.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
10/29/12 10:51 AM (13 years ago)
Excellent! For those running the Notepad plugin, this should take care of any potential rejection issues you might be having. Thanks, @David!
 
SheriDee
Code is Art
Profile
Posts: 1094
Reg: Sep 23, 2011
location unknow...
22,840
like
10/29/12 01:32 PM (13 years ago)
love love love self hosting!!!!! ;) Thanks David!
 
tonycelestino
Aspiring developer
Profile
Posts: 213
Reg: Jun 24, 2011
Maceio
4,080
like
10/29/12 02:19 PM (13 years ago)
@david is this also updated in v1.5 apps? Thanks!
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
10/30/12 11:51 AM (13 years ago)
Nice, thanks as always BT!!
 
shenry
Aspiring developer
Profile
Posts: 469
Reg: Jan 10, 2012
Orange County, ...
13,390
like
01/01/13 02:25 PM (13 years ago)
I'm getting Build Failed, Semantic Issue error within BT_fileManager.m. I using Version 4.2. It would build fine on 12/15, but I haven't been able to build the same xcodeproj after I downloaded it yesterday. I'm stumped, any idea what I should do?
 

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.