Archive for the ‘iphone’ Category

openFrameworks knitting circle

Wednesday, June 10th, 2009

Had a really nice time tonight at the oF knitting circle held at Parsons in NYC. Saw several really inspiring projects and spoke to several people about using openFrameworks for iPhone development and showed the current version of the particle game using ofxiPhoneAlertView.

Quite a few folks mentioned that they have become interested in openFrameworks after hearing about it’s use for creating iPhone applications. While not every app is suitable, I saw a few really nice examples. My only regret is not getting the name of the fellow who was working with creating a sound wrapper.

The wiki page for the knitting circle is at the openFrameworks wiki.

ofxiPhoneAlertView

Wednesday, June 10th, 2009

Here is a (really) basic wrapper for the UIAlertView in openFrameworks of iPhone. Not all of the necessary delegate methods have been implemented yet, but this is enough for me to get the proof of concept rolling in an app I’m building.

Feel free to let me know how I can do things better, or just tinker with the code directly at github: ofxiPhoneWrappers

Check out the example project. This is a bit of a kludge. I would like to figure out how to avoid having to declare main and testApp as mixed source files (.mm). It works for now, however.

Here are the notes on using the class: (more…)

BarCampNYC4 presentation

Wednesday, June 3rd, 2009

BarCampNYC4 was hosted by ITP on May 30-31st. It was a great event – I’d highly recommend going to another one.

I did a presentation titled “Using openFrameworks for iPhone App Development” which I think went well, although it was quite dense. Can’t be helped, I suppose. The walk-through of getting set up with openFrameworks has been previously posted, and is also available on ITPedia. Below is an embedded video of the presentation thanks to Mark B… and New Work City. (more…)

Using openFrameworks for iPhone dev

Sunday, May 31st, 2009

[Also available at ITPedia. Watch video of the BarCampNYC4 presentation.]

This is an overview of getting set up using openFrameworks for iPhone development.

What is openFrameworks?

openFrameworks is a “a C++ library for creative coding”. It shares a similar philosophy with Processing (as a library for Java). The intended audience “are folks using computers for creative, artistic expression, and who would like low level access to the data inside of media in order manipulate, analyze or explore.”

There are good resources for reading more about it below, under the Resources heading. This article assumes basic knowledge of programming and of the Xcode development environment. You can simply follow along and launch the demo app, but you should really read the resources to understand the structure of a typical openFrameworks-based application.

Why?

iPhone native application development is typically done in Objective-C. Not pressing the merits and detractions of Obj-C, but it’s *another* language to learn. If you have code / experience working in C++ then you can use oF to migrate those programs to the iPhone somewhat painlessly. Arguably easier to begin working with – espeically if you’re coming from experience with Processing.

Why not?

However, if you already develop in Objective-C, then maybe you don’t need to use oF. OpenFrameworks is not as well documented as Objective-C (even though Apple’s docs are as dense as the proverbial stereo instructions joke). Certain applications are not as suitable (lots of hierarchal views) It’s very easy to overwhelm the iPhone if porting desktop oF code over.

Ultimately, however, this eliminates 90% of Obj-C. Still need to use Obj-C (or Obj-C++) to use iPhone interface widgets. Don’t worry about it right now. (more…)

openFrameworks + iPhone libs

Wednesday, March 25th, 2009

of_iphoneI’ve had a few days to test the libraries I cobbled together for using openFrameworks with iPhone and also received positive reports from some folks who tried out the Makefiles I provided to them, so here they are for anyone who’s willing to try them out. -please make these instructions better if you see fit- (more…)

openFrameworks + iPhone

Monday, March 16th, 2009

particles-iphoneI’ve heard about openFrameworks 0.6 (as of yet unreleased) and specifically efforts to support building apps using oF for the iPhone. There are a few developers who have published videos of their efforts and even several apps in the AppStore.

Memo Atken has a very informative article about setting up the prerelease 0.6 version for use with the ofxiPhone addon. However, there is a HUGE simplification of the steps necessary for getting the supporting libraries installed for use with iPhone.

Update: freetype/freeimage building instructions have been posted. (more…)

iPhone pinwheel: 4in4 day two

Tuesday, January 13th, 2009

the iphone is missing one of my most beloved relics of os x…the pinwheel, aka beachball of doom/death. i wanted to experiment with using the core graphics framework to draw to the screen and create animation and this was an interesting experience.

the animation is too slow currently…i feel that i’m doing things in a really inefficient way at the moment. i had also tried using UIImageViews and animating them, but i couldn’t figure out a way to get the spinning layer to composite using the overlay blend mode…which you can easily do with core graphics contexts.

i’ll try again later, but i really need to get away from the computer and onto my bike to train (which is a matter of about five feet now that it’s dark and icy out). i’ll post a video if i can get the animation on the phone to happen more quickly.

pinwheel

my first iphone app :)

Monday, January 12th, 2009

(i was going for a fisher-price approach with the title…)

regardless, i’ve finally gotten around to iPhone development. my developer account was approved last week, and apple happily took my $99 in exchange for slightly greater access to their website and an application code signing certificate. in preparation, i’ve been reading the requisite docs on objective-c, cocoa and iphone application programming. also, working on golden cheetah got me comfortable (sort of) coding in xcode.
(more…)