Why use Core data for storage? [closed] - objective-c

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
What is the meaning of it?
What is Core Data?
What is so special about it?
When I went to create a navigation based application it has a check box for Core Data.
If I use this option then what will it work well for my project?
Also, when i choose View Controller Based Application while creating a new project the Core Data check box is not available. Why is this?

sure, sqlite is a lib for db too, and core data is an object-c lib for database... both are a good way to manage db, you have just to choose your favorite one...
and this may help you:
http://tapity.com/iphone-app-development/readwrite-data-on-the-iphone-property-lists-sqlite-or-core-data/

Those are broad questions better answered by Apple's documentation.

Core Data is a persistant store of your object graph, It can be backed by sqllite, but doesn't have to be.
if you are unsure how you want to store data, CD is a good choice, it is very well optimised. as a rule you only want to use something other than core data if you have a very good reason.
read the apple docs for a better overview, and there is a fantastic book by Marcus Zarra. If you are going to be developing for iOS it is well worth learning about, even if you choose not to use it.
with regards to why it isn't available in the VC based application, there is no reason not to use it with a View controller based app, but you would have to type the code to implement it, there isn't a default design pattern from apple for it in the templates, so you would have to decide how to impliment it best for your use case.

Related

Develop Application using extjs [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
Recently my company asked me to gather knowledge in EXTJS. I have seen a lot of examples from Sencha
But, when I want to develop applications using extjs what should i do? Now I want to dive into building application using ExtJS. Please give me some link.
There's definitely a bit of a learning curve with Ext, but the best place to start really is their MVC application tutorial and just reading the application documentation:
Tutorials:
Ext MVC Intro
App Architecture pt 1
App Architecture pt 2
App Architecture pt 3
Documentation:
App documentation
In addition, I would make sure to get an understanding of how the event system works in extjs as it is the core of how wiring the components together works. Have a look at the base observable class to get some detailed information - all the components that can fire events inherit this class. Generally speaking, the documentation is your friend in Ext though.
One thing I did while learning ext was read over Jay Garcia's book ExtJS In Action. By no means will it teach you everything you need to know, but it gives a good overview of what Ext is capable of and some common usage patterns.

Postgresql and OSX [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I have a project that's in the design phase and looking at my options have decided on using Postgresql for the application backend because of licensing and features. I have searched around but I am unable to find any solid information on using Postgresql in Xcode or even with OSX applications. Could someone point me in the right direction any help would be greatly appreciated.
You have not given quite a lot of context.
On the application side there are quite a few pieces of software running under OS X that interface with PostgreSQL, for example the standard GUI pgAdmin.
But I believe you're more concerned about the developers perspective. Probably the most common way is to use the libpq library that comes with PostgreSQL. It is well documented and rather stable. Integration into your software project should be straightforward.
If you are looking for an Objective-C framework, you could try out BaseTen. Never used that one, though.
If you want more specific help, you have to ask more specific questions.

Linking iOS application to database [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
Needed some advice as i am writing my first iOS application,
1. what is the best way(simplest) to link an app to a database and does the database have to be SQLite (the databse will be external ie. linked via the internet)? i have used mySQL before in MAMP,
I have read up on other post and they suggest complicated methods like via JSON etc, please provide a simple way and a book/guide/web site that could teach me your suggested method would be much appreciated too :)
SQLite is one of them.
However if your requirement is to share the database, you can go with mySQL or even Oracle etc.
JSON, xml are the tools that will help you to make a client server application.
Useful link:
http://jainmarket.blogspot.in/2009/05/iphone-sdk-tutorial-reading-data-from.html
SQLite is generally used for a local database (aka, on the device itself) through CoreData. But it seems like you have a remote MySQL database you want to connect to.
You should build some API that your iOS app talks to to get data from a database. Typically this is done over http which generates JSON in whatever server language of your choice (eg - python, ruby, php, etc).
For the iOS side, you'll probably use Apple's builtin features: NSURLConnection and NSJSONSerialization.

Architecture behind large-scale social sites like Twitter - help with a new startup. [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I apologize in advance for this not being a specific programming question, but I believe this is the best place for such an inquiry.
Basically, I have an idea for what I believe to be an interesting social networking site (not just a clone of existing things, but something useful and unique); I have a detailed specification document describing how everything works, but I'm not sure how best to proceed from here. Architecturally, it seems like it would be most similar to something like Twitter, and I have some idea of what technologies are involved in this (SQL database, ajax, mobile integration, etc.). I do not have the time to code everything myself, and honestly some of it is likely beyond me. So, I suppose my pool of questions is something like this:
Assume I am non-programmer with a legitimately good idea for a new and large-scale social networking service, similar (in architecture) to Twitter, and some capital to make it happen:
How do I proceed?
What is the architecture behind a site like Twitter and what technologies does it use? How do I find people with experience building these types of systems for consulting/development purposes?
Are there any initiatives (government or otherwise) that can help me in such a start-up endeavor?
I appreciate any help you can offer. Thanks, and again I apologize for the broadness of this question.
The High Scalability blog ( http://highscalability.com/ ) periodically describes the architecture of major sites. Browse through archives there to get a feel for how they get built.

Online Chess by VB.net [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
as the topic header shows my question is about Coding an online chess by VB.net.
I coded the chess game with all rules , now I designed a login form for it, but I don't know how to connect to a Database and send query , to check the User and pass.
I searched about connecting to a DB and I found something. but i didn't found anything about sending query.
I need a code that contains connecting to a DB and sending query for example about checking username and password to DB.
thanks.
Well, the simplest answer is to use what's called ADO.NET. It's basically a set of classes within the .NET Framework which are used to access a database. Depending on the database you use, there may be a built-in driver (MS SQL, Access, etc.) or you may need to use a 3rd party one (MySQL, PostgreSQL, etc.).
Here are a couple of examples. There are many more.
You can also use LINQ to SQL, which internally uses ADO.NET but presents the data access to the developer is a more fluent way. Or take it another step and use Entity Framework. Etc.
Essentially the question itself is very broad. There are a number of ways you can access a database. But these are the places to get started. If/When you run into specific issues with code not working the way you expect, we'll be happy to help.