Wednesday, November 24, 2010

A Little Hiccup

I have just completed chapter 2 of the book, and the material was introducing you to a new control called a picker. It's the spinning wheel thing that you sometimes see in an iPhone application. It also took you in to a bit more depth regarding buttons than the first chapter did.


So, the cool thing about pickers is that they don't store their own information. The information is stored using data sources and delegates, and the picker only knows how to ask about the data. When you scroll the picker it has to ask the for the items to display next. This is a very smart approach as performance would probably be severely hampered if a control was storing over 100 items in it especially considering that strings are the simplest things that you can display with a picker.

Now, about the above application. The purpose of the application was to make a Twitter app that could easily send a tweet with what you are doing, and how you are feeling. It seems silly from an actual user standpoint, but it has merit as a learning device. I got everything working just fine, but then when I went to hit the "Tweet it!" button:

You can see that I was getting an error of "Basic authentication is not supported". Apparently sometime between when this book was published, and when I actually did this exercise Twitter upgraded from basic authentication to OAuth authentication. I checked the website for the book for a fix, but I could not find anything. 

Glancing forward it appears that we are modifying the InstaTwit application in chapter 3 to better understand the Objective C that we are using so I would like the application to actually be able to tweet to Twitter, and not just the command line. I am hoping that my next blog post will have detailed information on how to get InstaTwit converted from basic authentication to OAuth authentication. It's probably a better learning exercise than immediately moving on with the book.

6 comments:

  1. I've always wanted to do iPhone development, but still don't have the time to start. It looks like an awesome thing to program for a touschscreen.

    ReplyDelete
  2. wow..super post.. very useful for me.. i like programming..

    http://breakthesecurity.blogspot.com/

    ReplyDelete
  3. Cool post, I like it, Moreover here you can find many samples.

    http://www.webtasarimi.com

    ReplyDelete
  4. Nice post - really wonderful the code snippet like the post.


    Thanks and Regards,
    Virtual assistant India

    ReplyDelete
  5. wonderful effort. have you worked out blackberry as i need assistant if this or any other relevant feature available in any of BB model.do share here.thnx

    ReplyDelete
  6. wow..great information..it is useful for me..i really appreciated your effort keep it up.
    Best Online Drug Store

    ReplyDelete