Tag: model view controller

How to Make Drill-Down Tables in Swift

Table views are a lot like potato chips: You can’t have just one. Often, table views relate to each other in what is often referred to as a drill-down. Drill downs typically take the selected data and provide another list in a table about…

Swift WatchKit Tutorials — A Basic Watch Kit App

Like a lot of people I ordered my Apple watch on April 10th, and now have to wait until June for it to arrive. I’m excited about the possibilities of the watch. I’m excited about writing applications for the watch, and I’m excited about sharing…

The Swift Swift Tutorial: Why Do We Need Delegates?

[Updated to Swift 2.0/iOS9 SJL 9/28/15] A Note to readers: This post is out of date. Since Swift 3.0, iOS 10 and watchOS 3 have so many changes, I made a new post wth proper syntax, and a lot better illustrations. You can find…

From Apple To Raspberry Pi: An Example of Implementing a Python MVC (Part 2)

In the last part we implemented the view and controller for the Popper’s Penguins application. Now we add the model.  Along the way, we will make a delegate method for the model and change our target actions to add our data to a list. Add the…

From Apple To Raspberry Pi: An Example of Implementing a Python MVC (Part 1)

I gave a template for MVC in the last post, This time I’m going to use it in the Popper’s Penguins application. We’ll re-organize what we already did with views and controllers to match the template.  We’ll add the model in the next installment…

From Apple to Raspberry Pi: A MVC Template for Tkinter

In this installment I’m going to take a side path from the building of the Popper’s penguins app to clarify something I gave in my last post on Python, Tkinter and Raspberry Pi. In the world of Xcode, both for OS X development and…

From Apple to Raspberry Pi: Using Object Oriented Programming with Tkinter

We’ve been learning parts of Python together. So far we’ve learned the basics of Python and setting up classes and instances in it. We have a good start on using UI elements and styling them with the basics of tk and ttk. I’d like…