Amazon.com Widgets Databases
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 26, 2014, 01:40:06 AM
Home Help Search chat Login Register 
News: Read this please.The Great Kangaroo Escape Looking for reviews of the 4th ed on Amazon!   Twitter:  @skochan
                     

+ Official Forum for Programming in Objective-C (the iPhone Programming Language) - Stephen Kochan
|-+ Old Stuff
| |-+ Parts 1 and 2
| | |-+ Questions and Discussion
| | | |-+ Databases
Pages: [1] Go Down
Print
Author Topic: Databases (Read 1737 times)
gwalters
Newbie
*
Posts: 14






on: June 29, 2011, 04:39:06 PM

Hello Steve,

How do you connect to databases in Objective-C? Can you connect to an Eclipse database?
When I say connect I mean open, write to, retrieve, and close the database.

I can't find anything on databases in any of the Obj-C books that I've looked at so far.
The only thing I'm finding is writing and retrieving to text files.

Would databases be memory efficient for iPhone and iPad apps?

Thanks for your help.

Gary
Logged
fujilla
Global Moderator
Sr. Member
*****
Posts: 276


WWW




Reply #1 on: June 30, 2011, 12:57:04 AM

Gary

Although I have not got that far myself, there are two main ways I know of regarding databases for iPhone/iPad.

Firstly, every iPhone (and probably iPad) has SQLite on it, so you can use SQLite databases.

Secondly, and this is probably regarded as the main way, is Core Data, which is an OOP database (if I am right), which you build inside of Xcode.

Hope that helps,
Nick
http://myfirstiphoneapp.co.uk
Logged
gwalters
Newbie
*
Posts: 14






Reply #2 on: June 30, 2011, 09:33:29 AM

Where I typed "Eclipse" should have been "MySQL".

Also, if you can use SQL Lite than how do you connect to it?
Logged
fujilla
Global Moderator
Sr. Member
*****
Posts: 276


WWW




Reply #3 on: June 30, 2011, 10:01:53 AM

Unfortunately I have not got that far myself, so you will either have to see if someone else replies, or go to developer.apple.com, or google for an answer.

Sorry,
Nick
http://myfirstiphoneapp.co.uk
Logged
gwalters
Newbie
*
Posts: 14






Reply #4 on: July 01, 2011, 09:13:36 PM

Steve, if you have the time would you please shed some light on this subject.
Thanks in advance for your help.

Gary
Logged
skochan
Administrator
Hero Member
*****
Posts: 3114







Reply #5 on: July 01, 2011, 11:02:17 PM

Yes, SQLLite is built into Mac OS X as well as iOS.   Start here for  to learn more about Core Date: http://bit.ly/iDslaq .   Interaction directly with a SQLLite database is done with a C API.  Look here for more info for iOS apps: http://bit.ly/iJr5a6 and http://bit.ly/jbA7nS .

Cheers,

Steve
Logged
Pages: [1] Go Up
Print
Jump to:



Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Entire forum contents (c) 2009 classroomM.com. All rights reserved.