Im working my way thru Lecture 9. Recapping what ive done, i created 2 Preence2 projects; first i pass data using the custom initWithpassedData: method which didnt let me use the initWithStyle for the tweets table view, and second I used the appDelegate pattern which i dont like cause its really a global variable. So Im looking into KVOs and NSNotifications but they look kinda scary! I started using plists for a couple of projects, found out they can be further structured to no just a simple array or a dictionary with keys and objects, but also kind of a flat db with parents and childs. Ill try using plists… Read More
Continue ReadingStanford Assignment 3 HelloPoly: 1 Control/Multiple Actions
I should have known this from my experience in Flash! The solution to why it only draws the first polygon is that the same buttons, Increase and Decrease, required multiple, in this case 2, actions, not just one. Basically you need to define another method, inside the polygonview, which calls setNeedsDispaly. And hook up the same buttons in the nib file to that method.
Continue Reading