[Note, XCode 3.2 did away with the Errors and Warnings Smart Group. 🙁 Its functionality is now moved to the Build Results Window. I’ll probably write an update to this whole setup soon.]
After a few months of working with XCode, I’m starting to fine tune my set up to make it easier to code, compile and debug. A couple of tips for today on dealing with compile errors. Say you compile and you have an error in your code. Don’t laugh. It could happen. With the default setup, you’ll get something like this:
Read more...Still getting used to this whole memory management thing. I thought I had it pretty much squared away, but just ran into a spot where I got complacent and let a bunch get by me.
I’ve been working mostly with cocos2d, where most of the objects are created with a static “node” or “spriteWith…” type methods, which return an autoreleased instance of the class you want.
[c]mySprite = [Sprite spriteWithFile:@“some.png”];
myScene = [SomeScene node];[/c]
A couple of the first iPhone apps I made.
No ads, no cost. Enjoy.
Read more...In Objective-C, you call methods with square brackets. Instead of:
[c]myObject.myMethod();[/c]
it’s:
[c][myObject myMethod];[/c]
Instead of:
[c]myObject.myMethod(argument);[/c]
it’s:
[c][myObject myMethod:argument];[/c]
Bizarre at first to many, but it really does grow on you. Especially with multiple arguments, it’s like having named parameters. Compare code that looks like this:
[c]myObject.setProperties(100, 100, 50, 50);[/c]
to this:
[c][myObject setPropertyX:100 y:100 width:100 height:100];[/c]
A contrived example, but you see how you always know what the parameters are.
Read more...No, I’m not predicting when it’s going to be on there, saying it’s never going to be on there, or forwarding any conspiracy theories about why it’s not on there already. I’m just curious what people think of when they think of “Flash on the iPhone”.
This started as a twitter conversation. But sometimes 140 chars just aint enough.
Basically, as I see it, there are two avenues that could be gone down.
Read more...https://wickedpissahgames.com/?page_id=105
Read more...Almost done. Hope to submit this weekend, along with a whole lot of other stuff I have to do. But figured I’d start getting the “buzz” out now. 🙂
Read more...I installed TextExpander a few weeks back and have been slowly building up some cool snippets. One thing I often want to do is log something. An object, an int or float, or a point or rectangle. The object and numbers can be pretty easy, unless you are logging the result of some method call or something, but the point and rectangle are prime candidates for snippets. I went back and forth with doing this via Text Macros and doing it via TextExpander. In the end, I like the flow I have with TextExpander. Here they are:
Read more...So the big news today on Twitter was Chris Hughes’ talk at TED. He got just under 2 minutes on stage and showed off some augmented reality stuff using Papervision 3D and the FLARtoolkit. Unfortunately he said some stuff along the lines of “I wrote” and “we converted” and didn’t mention the actual projects themselves by name. Understandably, some of the Flash community, who have contributed or use these projects, were pretty upset about this. A lot of people have put a lot of time in on these projects and then to see them on stage at a big name conference like TED, without being mentioned by name, and in a way that implies that another person did it all… yeah, not fun.
Read more...I love Fireworks, but this has bugged me since I’ve been using it. Say I draw a line. It’s a 1-pixel (I’m zoomed way in), hard, black line. Notice the blue vector line and end points, and the position of the line in relation to the underlying vector:

But since I was drawing it by hand, maybe it’s not quite as long as I wanted it. It’s 10-pixels long, but I wanted it to be 11. No problem. I go into the properties inspector and change that 10 to an 11. Now I get this:
Read more...