Hi All,
Have a simple newbie question.
Context: Have a prototype PHP application which I am trying to turn into a product. The idea is to use Cappuccino to be the workflow holder. See attached image. In essence, multiple Capp GUI's will call PHP functions which sit talk to DB and file system.
Problem: I cannot use XcodeCapp. I have not programmed before in OS X, which means the magic that XcodeCapp can do confuses me. I look at some of the screencasts (Aparajita's Cup one for example) and it looks epic, except i do not understand the logic. Coding it up from scratch however, works well for me, as i see what is going on. I understand this is less efficient, but it is what it is. Hopefully this will change
- The thing i am wondering is this - when i create a new project using XcodeCapp, and try to delete all the components and then try to manually code up stuff it does not work. My work around is to download the Starter project, take the frameworks folder from there, and then build the Application.j around that. Is this a terrible idea? Is the starter project maintained to the latest Capp stable version?
- How do you compile Capp so that the code is a complied output? Currently, everything i build is 5mb+, making debugging slow. Using XcodeCapp would speed this up, but is fine for moment as i am learning about Capp doing it the hard way.
- How do i do user authentication nicely? I'm passing a post HTTP plaintext from the Capp app to my php function. The PHP function does all the usual - create random salt using blowfish, append to password, use DES to create hash, save hash in DB. So i am not storing the password in plaintext. But i am passing the original password from Capp -> PHP via plaintext. Is this silly or am i just paranoid - i mean, its in a compiled app right?
- For other functionality, i take stuff from the Capp GUI, call a controller which sends it to a PHP function as a POST request with the message in the body, and the PHP function does the rest.
- The GUI's i'm looking to create are pretty basic, just Menu, Toolbar and Split View linked to an array. When I'm wiring up this GUI in XCode, where is the code? The AppController.j is empty. I'm expecting to see functions for all of these, which i can put code into manually. That is, with the split view, want a tree structure, and clicking on elements of this should change the view in the main view of the split view. Clicking on different objects in the toolbar should trigger a change in the split view. There are code samples of this around, which i am using, but how do you do this in XCode? Some pointers would be very much appreciated.
- The primary way i am using Capp is to enforce workflow for the user. Is this a silly idea in itself and have i missed the point of Capp?
Notes -
- I understand that the smart way to do this would be to wire it up in XcodeCapp (and XCode) and then use Ratatosk to access my databases in a RESTful manner. This is beyond my abilities for the moment. I am able to code simple PHP however and basic HTML.
- In my head, the workflow is Capp GUI <-> PHP <-> DB/File System. Currently using MySQL for DB, but looking to change that to CouchDB (for the JSON and revision capabilities)
- This would be hosted probably on Bluemix with Cloudant (for CouchDB). Right now it sits on my desktop.
Any pointers would be very much appreciated. I think this framework is mind-blowing, and cannot wait to become (marginally) proficient in this so can make cool things. Thanks so much.
tat