How to Use SQLite Databases in Cocoa or Objective C
Using SQLite databases can be confusing and hard to do for beginners to the Cocoa/Objective-C language. This guide will show you how to easily get started using SQLite. A basic knowledge of Objective-C and Cocoa are recommended.
EditSteps
-
1Download the FlyingMeatDatabase API.
-
2Create a new project in XCode or open an existing project.
-
3Create a new Group in your Linked Frameworks folder and name it "FMDB".
-
4Click and drag the files in the "fmdb/src/" directory into the group you created. The "fmdb/src/" directory can be found in the downloaded/checked out directory. MAKE SURE NOT TO DRAG "fmdb.m".
-
5If prompted, check Copy Files.
-
6Right click on Linked Frameworks and click on Add > Existing Framework.
-
7Find "libsqlite3.dylib" in the Frameworks list. To make this step easier, you can choose to filter the Frameworks by dylibs only.
-
8Copy files if prompted.
-
9You're now set up to use FMDB as well as Sqlite databases.
-
10View this sample code to see how it works.
We could really use your help!
healthy gardening soil?

raising children?

car stereos?

accounting?

Article Info
Categories: Operating Systems
Recent edits by: Teresa
Thanks to all authors for creating a page that has been read 6,006 times.