Combining Cocoa and MySQL - mysql

i was searching SO for help on this, but i can't seem to find a concrete solution.
Is, or isn't it possible to connect to a mysql database with Cocoa?
Because i'm working on a program that i'd like to extend to a database, but i sure as hell don't know how!
I mean, that cocoa-mysql package is heavily outdated, and i dont even know what a C wrapper is!
Can someone please tell me how to do this, or atleast burst my bubble to tell me that it can't be done?
Thanks!

Since Core Data came out, I'm not surprised that other DB-wrapping Cocoa libraries are falling out of date. If you don't need to specifically wrap a MySQL DB, then I'd look at Core Data and its SQLite backend. It's available for both Mac OS and iPhone platforms.

Related

How can I generate a software update package?

I am searching for a peace of software that permit me to build a package that will perform update of already delivered software.
Because I am using Liquibase, I am searching something that would work a little bit like Liquibase.
I think this software, may need to be configured be providing it what actions have to be done for updating from version X-1 to version X.
And the package will be an aggregation of every steps, and by detecting that the version X-t is installed, it will then need to execute t actions to make the update to version X.
I know that StackOverflow is not meant to answer to this kind of questions, but I don't really know how are named this kind of software nor where to search for it.
If this can run on Linux and Windows it would be great.
What you describe sounds a lot like what a package manager does. Some of them support delta updates.
By the problem definition it sounds like you need to create installation packages.
For the windows platform have a look at WiX, - it covers all possible needs, and imho is the best of its class. But has a bit steep learning curve.
Another fair windows alternative is InnoSetup - way easier, but not so mighty.
I am not familiar with an installer framework which can do for both Linux and Windows.
If you are totally new in the field, this is a good point to start digging from.
I am using "Setup Factory" for this porpose,
You can create patches and you cand create updates.

jQMobi documentation mirror

Just got started and running with jqMobi, which is now called 'intel's application framework' (cheesy name eh)
Along with intel's porting to their new site, they forgot to put the full docs online (at least I can't find it). Now there's only minimal documentation, like the getting started. I'd like to get on with it.
Anyone knows where the (full) docs are hosted? I really hate to go look for another framework again.
The documentation is all there. The only thing they did not add was the "testdrive", which is just the kitchen sink sample found in github
In my opinion the docs are somewhat scattered, but there's some helpful stuff if you can find it. I keep bookmarks for these links. There are some links from those that get you to more stuff.
http://html5dev-software.intel.com/documentation/jqmobiapis/index.html
http://app-framework-software.intel.com/documentation.php?r=9057
http://developer.html5dev-software.intel.com/
http://www.html5dev-software.intel.com/documentation/
Actually they split off where appMobi is a cloud services company to support apps, and Intel took the part to build the apps. So you may still need/want appMobi. Their docs are on their site of course. There is still some duplication on the appMobi site.
Technically I don't think jqMobi is the same thing as the Intel App Framework, but at the same time I have a hard time understanding what's called what anymore. I'm sure they'll clear this up over time. I hope they find names that can be useful tags on stackoverflow.com!

Is there a working Cocoa MySQL Xcode project?

Or has this been abandoned? I can't seem to find a modern sample project. I haven't been able to make any the old code I find work. I just want to write a simple Mac app that accesses an external MySQL database that's also involved in a PHP website.
The old CocoaMySQL project has been abandoned, but the project has been resurrected as Sequel Pro.
It's open source and you can get the source code here.
If you want a straight library that allows you to access MySQL, you might try the commercial MacSQL framework.
You can also just use the MySQL C API directly, however be careful because if you want to use this in a commercial app the licensing fees are high.
You might find it easier to write some PHP code on the server to deliver the results to your client using JSON or some other lightweight data interchange format. PHP has direct support for JSON and there is a great Cocoa framework that makes it easy to parse and generate JSON code.
This method allows you to completely abstract the database connection from your client, so it is relatively trivial to change the database if necessary in future.
Thanks, Rob, I have actually seen the links to Sequel Pro but I was confused when I got there. Part of my problem is that I am really bad at adding things to an Xcode project. Once I have a project in hand with the correct libraries and whatever all linked up, I can make use of the various methods or functions.
That's why I was asking if someone had a super simple project using MySQL that would hopefully compile for me right out of the box. I can then add all my objects and coding.
Can't seem to find anyone out there willing to hold the hand of us project-challenged. The project settings dialog box and codes that go in various boxes therein are very confusing to me.

What level of technical skills/expertise is required for implementing CAS SSO?

I am in a process of integrating several websites/content management tools to try out some of my ideas. Over the past couple of months, I have discovered tons of very helpful stuff, and it's great. I'm setting everything up just fine. To name a few it's: phpwebsite, moodle, livezilla, etc.
The problem is that I am doing everything myself and do lack technical knowledge.
I do have a strong programming background from way back then, which is no longer applicable. However, I seem to be managing do dig up HTML, PHP and JavaScript codes more or less OK, and things move forward pretty well.
Now it came to the need to implement SSO between a few of my systems. I like what I read about CAS, but the more I read the scarier it sounds:). I feel that I lack way too much technical expertise to be able to implement it myself. It looks like that it is not just simple logica installation and configuration as with most of the things I delt in a past two month, but kind overly complicated.
Should I risk it? What problems am I gonna face?
All the discussions I have been able to find so far are way to technical, not user friendly at all.
Please help me to build up some courage:)
Thanks,
Oleg
Looks like you're doing very well, there are many people ready to help you. Take a chance and you will learn a lot in the process.
You can at least remove the burdeon of installing the CAS server by using the cloud provider: http://www.casinthecloud.com (free servers are available for tests). For all the integrated applications, it's still up to you, but it should be in your technology using the right CAS client.
There is demo implementation here,
Hope that helps

Cocoa MySQL Framework pointers and/or advice?

Hey, I'm looking to find a good MySQL framework for Cocoa that I can use in my XCode projects to access a database on the web. Do you know of any good, open source/free ones? I have looked at http:// mysql-cocoa.sourceforge .net/index.html but haven't had a chance to play with it. Should I start there or is there something better?
Thanks in advance!
You almost answered your own question! Take a look at MySQL-Cocoa.
I've had a good experience wrapping simple queries in NSOperation objects for easy multi-threading.
Try:
MySQL Framework for iPhone :
http://www.eval-art.com/2009/06/22/mysqlframework-for-iphone/