Author: Mach

  • Navigation Bar

     

    Apparently, there are some issues with transparent navigation bars so I won’t be using those. But I managed to get an opaque navigation bar set up. Here are three versions:

    Which do you like best?

    • a) the original without any bar
    • b) the one with just a bar on top
    • c) or the one with both

    Doing navigation without a bar (getting it to look back like the original) would be kinda tricky for me because I’d have to write custom code to do all the switching and the other pages (history and settings) look better with the bar since they’ll be more standard iPhone interfaces. So I wanted to get a gauge of people’s opinion as to whether it was worth putting in the effort to do something like that.

    Reply in the comments section!

  • Developing for the iPhone Part 4: The Notebook

    I’m working furiously to get a few of the most requested features in (dice locking, colored dice, history, etc.). A word of advice: if you ever plan to have multiple views flipping back and forth with a navigation bar, code that up before you start working on your main view, especially if you want to do something tricky like have a view to the left of your main view… Ah, hindsight.

    Anyways, I thought I’d take a bit of a break from that and go into one of the most important pieces of equipment when it comes to developing software: the notebook. That’s right, this humble notebook is vital to your project because it represents planning. Without the notebook, you might just start adding features and UI elements willy-nilly and then where would you be? Stuck with a crappy product, that’s where! You could use anything to plan, really; loose sheets of paper, napkins, a blackboard. But I prefer a notebook for a few reasons:

    • it’s portable so you can jot down ideas wherever they occur to you
    • the pages are connected so they won’t get lost or mixed up
    • it makes you look cool

    Well, okay, maybe it won’t make you look cool. But hey, the director of Pan’s Labyrinth, Guillermo del Toro, has one and he’s pretty darn cool.

  • Planned Features

    Whooh, after spending a couple hours replying to emails and comments for the second night in a row, I think I need to come up with an FAQ or something so I can get back to coding! Well, here’s a start:

    • Updates are free and automatic! So if you’re just waiting on a feature that I’m planning on implementing, you can buy it now and not have to worry about checking back here to see if I’ve implemented it yet. But I certainly welcome people to read this blog if they’re interested. The RSS feed is great for that.
    • Dice locking is the first feature that I’m planning on implementing next (I want to play Yahtzee, too)! Hopefully, I’ll be able to get that done this weekend.
    • Colored dice are definitely coming! I just have to work out an elegant interface for it.

    Update: see the full list of planned features on the Apps -> Mach Dice page.

    • I’ve Hit the Big Time!

      Well, maybe not the big time, but certainly bigger than when I started. It’s been a heady couple of days.

      A couple nights ago, I created a little YouTube video to demo my app. It got a couple views. Yesterday morning I posted on it in the apps forums of MacRumors. Again, just a few views. But one of the people who saw it was Arnold Kim, the guy who actually runs MacRumors! So then he posted on it in in the front page of the iPhone section and that got a few thousand views. Of course, only a small portion of those people actually purchased the app but still, it’s been exciting. I spent several hours last night responding to a lot of great comments and emails.

      So thank you Arnold, and thank you MacRumors community, and thank you YouTube community! If you bought Mach Dice and enjoy it, please tell your friends about it. I plan to continue blogging about developing applications for the iPhone so if you’re interested in that sort of thing, please do check back occasionally or subscribe to the RSS feed.

    • Demo Video Now on YouTube

      Hey, after many requests (okay, just one) I created a YouTube video to demo my dice rolling app. So now you can check out the demo before deciding whether or not to buy it on the iTunes store. Enjoy!

    • “Mach Dice” Now on the iTunes Store!

      Yay, my little dice rolling app is finally available on the iTunes Store! Please go check it out. Now, I’ve got to go see how quickly I can create a YouTube video demoing it…

       

    • SIGGRAPH

      I’ve been in L.A. this past week attending SIGGRAPH, a conference on computer graphics. I enjoy going because it’s a chance to catch up with old friends and meet other people in the same field. I also got a chance to show off my latest version of Mach Dice. People thought the tilting 3D effect was cool but hey, we’re a bunch of computer graphics geeks.

      So, the good news is that my app has been approved by the reviewing group! Sadly, it hasn’t actually made it onto the store yet, but I think it’s just a matter of time. I can imagine that they’re quite flooded with app submissions.

    • Developing for the iPhone Part 3: Software

      When it comes to software, there’s really one thing you need: the official iPhone software development kit. I can’t go into much detail about the SDK because they require confidentiality when you sign up for it, but I can tell you it’s good. It contains Xcode (Apple’s software developing environment), Interface Builder (to create user interfaces), the iPhone Simulator (which does just about everything the real one does except take pictures, use the accelerometer, and make calls), lots of documentation, and lots of sample code.

      To get the SDK, you just need to have an account with Apple (like iTunes) and you have to agree to their terms and conditions. Mostly, it’s stuff like confidentiality and that you agree not to write abusive software. They says it’s $99 (for the Standard Program) and $299 (for the Enterprise Program if you want to write programs that are only for your company). But you don’t have to pay until you are accepted to the program (which may take several months) and even then, you can change your mind and choose not to enroll. In the meantime, you can download the SDK for free and try it out.

      The only thing the SDK doesn’t come with is media creation stuff, like graphics and sound creations tools. For graphics, the standard is Photoshop but if you’re just starting out and you’re on a budget like me, you might want to take a look at the Gnu Image Manipulation Program (gimp) which is free. That’s what I used to create all the graphics on this site and in my dice rolling app. Sure, they’re not the greatest graphics in the world but to be honest, the limiting factor isn’t the software, it’s me. Da Vinci could do more with charcoal than most people can with a full set of oil paints. Don’t let lack of graphics software be a hurdle. Just get out there and do what you can with what you’ve got.

    • Developing for the iPhone Part 2: Hardware

      The first consideration when developing an iPhone app is the hardware. And it basically boils down to two devices:

      • a Mac
      • an iPhone (or iPod touch)

      As I mentioned before, I had never owned a Mac and I didn’t own an iPhone when I first became interested in writing an app for it so this was a bit of an expensive proposition. My advice? Try hitting up your friends who have more disposable income than you do. I’m married (no kids but single income), living in the Bay Area, and paying off a mortgage so my disposable income is close to zero. Oh yeah, good times… But fortunately, I’m in a techy kind of industry and I know lots of people who love their gadgets. Some of them even have spare laptops and phones.

      About the computer: be sure you get an Intel Mac. Yes, it’s theoretically possible to get the SDK running on a PowerPC Mac but I tried it and I wouldn’t advise it unless you just want to see what the SDK looks like. I was able to get the SDK to compile my applications on a PPC Mac but after beta 5 or so, my apps stopped running on the simulator. Maybe I didn’t set all the configurations right, maybe my machine was a bit flakey, or maybe it was the OpenGL stuff I was doing. But trust me, there are enough challenges to programming for the iPhone that you really don’t need to add this one.

      About the iPhone (or iPod Touch): you actually don’t need one, at least for a while. Yes, you’ll need it to test out things with the accelerometer, camera, etc. But otherwise, the simulator is very good. If you don’t have an iPhone but you’ve already got the Intel Mac, I suggest downloading the SDK and just trying it out. The simulator is good enough to give you a sense of what your final app will be like.

      In the next post, I’ll talk about software issues.

    • Developing for the iPhone Part 1: Background

      So, you’re thinking about developing for the iPhone. Great! It’s lots of fun and very rewarding to see your own little program running on an iPhone. There are plenty of tutorials out there but I thought it might be useful to talk about my own experiences.

      I have a fairly technical background, mostly in computer graphics. I’ve programmed in C++, used Open GL, and even wrote a couple apps for my Palm OS device back in the day. When I started this project, however, I had never owned a Mac, programmed in Objective C, or even owned an iPhone. But I managed to get a simple version of my dice rolling app up and running after several weekends.

      I’ll go into various aspects of my experiences, starting with hardware concerns in the next post.