Archive for August, 2009

August 11, 2009 0

When to use dot notation?

By admin in iOS

In Objective-C from my understanding. [NSOnedayInstancedrink drink:*Beer]; Is the same as: NSOnedayInstancedrink.drink = *beer Why the difference, well from what I’ve been reading, you want to use a @property versus bracket notation in these use-case scenarioes: * Use @property to declare the state exposed by your objects. * Use dot notation to get and set [...]

Tags: , , ,

August 11, 2009 0

Standard set up for clearing and re-drawing in OpenGL ES

By admin in iOS

Ok, basically this is what you have to do and memorize in order to clear the screen every frame. After typing it a million times, I decided to store it here for reference. This is from the OpenGL ES From The Ground Up tutorial after typing it a million times. Standard OpenGl ES, screen clear [...]

Tags: ,

August 11, 2009 0

OpenGL ES from the ground up

By admin in iOS

If you’re like me – your primary motivation for learning some of this stuff, is to make visual things. So learning Actionscript was easy and fun because of the instant gratification you receive from working from an inherently visual system. So this set of tutorials I stumbled across seems great, OpenGL ES from the ground [...]

Tags: , ,

August 6, 2009 0

Event.ENTER_FRAME / Run every frame

By admin in iOS

Coming from a flash / actionscript / processing background I’m used to having a method I can call which I will run every frame. No such per/frame function exist on the iphone (that I know of): You do it using a timer, like so: [NSTimer scheduledTimerWithTimeInterval:1.0 / 30.0 target:self selector:@selector(onTimer) userInfo:nil repeats:YES]; Place that into [...]

Tags:

August 6, 2009 0

Gravity Tutorial for iphone

By admin in iOS

This guy is a really big name in the flash community. He’s competent and he really likes teaching people everything he knows! His name is Keith Peters, and i stumbled upon a tutorial called Gravity Tutorial for iphone. I’ve read 4 chapters of Beginning iPhone Development, and it’s amazing, but i wanna make something a [...]

Tags: ,

August 6, 2009 0

Syntax error.

By admin in iOS

Objective-C syntax, it really kind of sucks. To me, in my brain [] is an array. When I see [[NSString alloc] init] I think i’m looking miss configured array. I guess I’ll have to get over it. Here’s some things: “-(IBAction)doSomething:(id)sender;” “-” public function (“+” means static, i don’t know which one means private) “(IBAction)” [...]

Tags:

August 6, 2009 0

Where’s the start button

By admin in iOS

So I don’t even own a mac, my co-worker who sits behind me let me borrow his mac that he leaves in the office to learn. Luckily he had xcode already set up with the iPhone SDK. First thing I did was pick up a book, http://www.amazon.com/Beginning-iPhone-Development-Exploring-SDK/dp/1430216263 by apress. This book is great so far, [...]

Tags:

August 6, 2009 0

Hello iPhone

By admin in iOS

Hello to everyone! Ok so first a few words about me: I’m an Actionscript 3.0 programmer, php-developer, pretty much a web-developer kind of guy. I really love to make things that are visually interesting and based on code. You can find my flash work here, http://onedayitwillmake.com I wanted to learn iphone development for fun. This [...]

Tags: , ,