Edit Article

  • 6,006 views
  • 2 Editors

  • Edited

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

  1. 1
    Download the FlyingMeatDatabase API.
  2. 2
    Create a new project in XCode or open an existing project.
  3. 3
    Create a new Group in your Linked Frameworks folder and name it "FMDB".
  4. 4
    Click 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".
  5. 5
    If prompted, check Copy Files.
  6. 6
    Right click on Linked Frameworks and click on Add > Existing Framework.
  7. 7
    Find "libsqlite3.dylib" in the Frameworks list. To make this step easier, you can choose to filter the Frameworks by dylibs only.
  8. 8
    Copy files if prompted.
  9. 9
    You're now set up to use FMDB as well as Sqlite databases.
  10. 10
    View this sample code to see how it works.

We could really use your help!

Can you tell us about
healthy gardening soil?
Yes I can
healthy gardening soil
how to improve soil
Can you tell us about
raising children?
Yes I can
raising children
how to get kids to sleep
Can you tell us about
car stereos?
Yes I can
car stereos
how to install a car stereo
Can you tell us about
accounting?
Yes I can
accounting
how to write an accounting ledger
Thanks for helping! Please tell us everything you know about
...
Tell us everything you know here. Remember, more detail is better.
Tips
Provide Details.
Please be as detailed as possible in your explanation. Don't worry about formatting! We'll take care of it. For example:
Don't say: Eat more fats.
Do say: Add fats with some nutritional value to the foods you already eat. Try olive oil, butter, avocado, and mayonnaise.

Article Info

Categories: Operating Systems

Recent edits by: Teresa

Thanks to all authors for creating a page that has been read 6,006 times.

Did this article help you?
Yes No