Archive for November, 2008

The “Digg” of iPhone Apps – Checkout My New Site

  • Twitter
  • Facebook
  • Digg
  • Reddit
  • StumbleUpon
  • del.icio.us
  • Google Bookmarks


It has been a while since my last tutorial.  For that I am sorry.  My wife is 9 months pregnant and about ready to pop.  This being the case, she takes up most of my free time… I have spent a little of my extra time developing a new iphone apps site called freshapps.com.
The site uses WordPress as its main engine and aims to be a “Digg-like” site for iphone apps. It offers a new fun …

November 15th, 2008 Posted by: (ELC) - posted under:Articles - View Comments READ MORE

A Great iPhone Coding Resource

  • Twitter
  • Facebook
  • Digg
  • Reddit
  • StumbleUpon
  • del.icio.us
  • Google Bookmarks

I’m sure many of you are aware that Stanford is offering an iPhone development class this semester.   On my journeys through the interwebs, I discovered a link to the site where the lectures for this class were posted (via delicious).  
So for those of you who already didn’t know this, here is a link to the lecture slides (with sample code).
http://www.stanford.edu/class/cs193p/cgi-bin/index.php
I hope you find the examples and instruction here very useful. Have a great day and happy …

November 5th, 2008 Posted by: (ELC) - posted under:Articles - View Comments READ MORE

Finding Substrings in Objective-C

  • Twitter
  • Facebook
  • Digg
  • Reddit
  • StumbleUpon
  • del.icio.us
  • Google Bookmarks

It’s times like this, that I miss ruby.
I’m checking a url to see if it has a substring. It would be so easy if this was ruby:
absolute_url.match(/my regex/).any?
In Objective C, you have to use rangeOfString which returns a range. If I were to run this on the string “the quick brown fox” with an argument of “brown” it would return {10,14}. If it’s not found, it would return {NSNotFound, 0}. Let’s use that to check to …

November 3rd, 2008 Posted by: - posted under:Snippets - View Comments READ MORE

iPhone Programming Tutorial – Intro to SOAP Web Services

  • Twitter
  • Facebook
  • Digg
  • Reddit
  • StumbleUpon
  • del.icio.us
  • Google Bookmarks

This tutorial was contributed by Dave (AKA Clarke76) on the Forums.
WebSite: http://viium.com
-Main project on site is eDuo. A .Net app that connects to OWA Exchange and forwards to IMAP account. Free program for those who can’t use Active Sync
 
Important Links:
[WebService] http://viium.com/WebService/HelloWorld.asmx
http://developer.apple.com/documentation/Cocoa/Conceptual/URLLoadingSystem/Tasks/UsingNSURLConnection.html
http://developer.apple.com/documentation/Cocoa/Conceptual/XMLParsing/XMLParsing.html
http://www.w3schools.com/soap/default.asp
-After creating our XML data / SOAP  request, we create a URLRequest. We add HTTP Header values, those values you read from the WebService.
-We set the HTTP Method to POST
-We set out HTTP Body to …

November 3rd, 2008 Posted by: (ELC) - posted under:Tutorials - View Comments READ MORE

iPhone: applicationDidFinishLaunching & handleOpenUrl

  • Twitter
  • Facebook
  • Digg
  • Reddit
  • StumbleUpon
  • del.icio.us
  • Google Bookmarks

Problem:
You use the applicationDidFinishLaunching method to kick off your application. This event fires automatically on your delegate whenever your app launches.
If your app launches from a special url schema (tel://, http://, mailto://), then another event is fired:
handleOpenUrl
As you might have noticed in the LaunchMe sample project that ships with Xcode, these two methods will most likely conflict.
Solution:
Move the functionality from applicationDidFinishLaunching and put it in another method, like postLaunch. Then add a member variable to the application delegate …

November 3rd, 2008 Posted by: - posted under:Snippets - View Comments READ MORE

Xcode SDK / iPhone OS Idiosyncracies

  • Twitter
  • Facebook
  • Digg
  • Reddit
  • StumbleUpon
  • del.icio.us
  • Google Bookmarks

The Problem:
Recently, after upgrading an iPhone to the current iPhone development firmware Xcode was unable to detect the device. I first noticed this when trying to build directly to the device:
“no provisioned iphone os device connected”. Needless to say, the device was in fact connected.
After that, I opened the organizer and saw:
“unable to locate a suitable developer disk image…”.
The Solution:
Downloading and installing the current Xcode SDK. Wouldn’t it be helpful if the error message could tell you …

November 2nd, 2008 Posted by: - posted under:Articles - View Comments READ MORE

iPhone building/testing for the device

  • Twitter
  • Facebook
  • Digg
  • Reddit
  • StumbleUpon
  • del.icio.us
  • Google Bookmarks

Building for the simulator is easy. Building for the device, however, can be troublesome, especially when using version control to share your code with other developers.
Often times, the project.pbxproj file ends up with settings that disable Xcode from building your application for the device. Here is a common and frustrating error:
CodeSign error: a valid provisioning profile is required for product type ‘Application’ in SDK ‘Device – iPhone OS 2.1′
That is not a helpful error message. In …

November 1st, 2008 Posted by: - posted under:Articles - View Comments READ MORE