At first for me this concept was a bit hard to grasp, hopefully i can break it down to basics here.
The Model-View-Controller is basically a design theory and a very logical organization of the parts or an iPhone application.
Model is basically the classes that hold your application’s data. For example if you created an application that when a button was pressed would take the name of that button (a string) then output that string to a label or a text field, then in this instance the Model object would be the string itself, the actual data that was used and transferred. This is a very loose example actually but, its simplicity I think makes the Model object more understandable. Most application that use a Model object will be storing or preserving data like when using Core Data classes. Read More
Actions are methods that are part of your controller class and are declared with a special keyword, IBAction. This keyword tells Interface Builder that this is an action and can be triggered by a control. In short if you want to have interface objects in the nib (like buttons) trigger methods in the controller class then you would use special methods called Actions. Read More
When building an iPhone app there comes a need for the code you write to interact with the elements you create in Interface Builder, this is called an Outlet.
The Outlet is and instance variable, and our controller class can refer to objects in the nib by using Outlets. Outlets are used to effect objects in your nib such as text labels, buttons and so on. By declaring an outlet and connecting that outlet to an object in the nib, you could use the outlet from within your code to change any object in your nib. Read More
The combination of WordPress and Jquery fits together just like Steve Austin and the 6 Million Dollar Man. Imagine your website as the meaty parts of Steve Austin that didn’t get turned into hamburger after his horrendous crash, and Jquery as the bionic upgrades stitched to his body by the OSI. Your blog may look great and get the ladies like Lee Majors but, what really makes the chicks drool are the bionic enhancements.
Read More
Continuing my series on working with ImageMagic here is an example on how to annotate an image with text and using fonts already on the server. There are so many ImageMagick annotate options that I can’t list them all here!
Read More