• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: iOS database within sandbox
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iOS database within sandbox


  • Subject: Re: iOS database within sandbox
  • From: Luther Baker <email@hidden>
  • Date: Fri, 22 Aug 2014 20:57:35 -0500

I'm not sure how helpful this is but rechnically, Core Data is an ORM - an object to relational mapping framework. Also realize that Core Data is most often configured to use SQLite as its backing store. In addition the, Xcode ships with a nice CoreData/ORM editor which often makes Core Data easier and faster to use for the average case.

But, if you have sufficient reason, you are more than welcome to use SQLite directly ...  Additionally then, you may also want to consider FMDB, Gus Mueller's thin wrapper around SQLite that makes it much easier to work with in the context of an iOS app.

Finally then, the database need not necessarily reside in the Documents' directory ... save for the fact that different directories are cleared out differently based on a few rules inherent to the platform. So in a sense, yes, you are probably safest dropping the SQLite file there - but it isn't necessarily a requirement.

Hth,
-Luther


>> On 23-Aug-2014, at 10:24, Carl Hoefs <email@hidden> wrote:
>>
>> I’m writing a Cocoa-based iOS 8 app that needs to store and manage data locally on the device. Is there a relational database available for general purpose use in iOS 8? Is there a limitation to how much space an app can use in its sandbox? I presume a database would necessarily need to reside in <Application_Home>/Documents/...
>>
>> -Carl
>>
>>
>> _______________________________________________
>>
>> Cocoa-dev mailing list (email@hidden)
>>
>> Please do not post admin requests or moderator comments to the list.
>> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>>
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: iOS database within sandbox
      • From: Michelangelo Chasseur <email@hidden>
References: 
 >iOS database within sandbox (From: Carl Hoefs <email@hidden>)
 >Re: iOS database within sandbox (From: "Michael A. Howard" <email@hidden>)

  • Prev by Date: Re: What is the modern Cocoa way to send an Apple Event to yourself?
  • Next by Date: Re: buggy sequence: miniaturize/close/makeKeyAndOrderFront
  • Previous by thread: Re: iOS database within sandbox
  • Next by thread: Re: iOS database within sandbox
  • Index(es):
    • Date
    • Thread