Hi all..
I tried a sample app and found (by watching memory during debugging that the app is looking for a books.sql databse in application Document directory.
Line in app is as follows...
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
But the folder specified above is not visible in my PC so that i can put the books.sql file into that folder.
That folder is created only after launching the simulator.
So my question is that how to direct my iPhone app to a fixed filepath...
Whether that file get ported to device if i put in some other folder and specify that path??
I want read and write actions on that database..
PLEASE HELP ME WITH A DETAILED REPLY.....
{ I read that adding as a resource will give us only read permission, we cant write to DB }
thanks in advance...
I tried a sample app and found (by watching memory during debugging that the app is looking for a books.sql databse in application Document directory.
Line in app is as follows...
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
But the folder specified above is not visible in my PC so that i can put the books.sql file into that folder.
That folder is created only after launching the simulator.
So my question is that how to direct my iPhone app to a fixed filepath...
Whether that file get ported to device if i put in some other folder and specify that path??
I want read and write actions on that database..
PLEASE HELP ME WITH A DETAILED REPLY.....
{ I read that adding as a resource will give us only read permission, we cant write to DB }
thanks in advance...