Archive for October, 2008

Standalone Web apps

Now here’s a tip for doing native-appearing Web applications for the iPhone that an AppleInsider reader found: simply add

<meta name="apple-mobile-web-app-capable" content="yes" />

to your Web page code. Then, once the user adds it to their Home Screen, it’ll launch in full screen without the Safari chrome visible. Demo can be found here.

That’s a pretty nifty feature for any WebKit-writable project you may have in mind, indeed!

h/t: AppleInsider!

Continue Reading →
1

URL scheme app integration

And now that the Felicitous NDA has been put on death watch, people aren’t wasting any time at all starting to share tips! Whilst we personally wait for an actual revocation of it, we’ll share public posts by those of a more cavalier bent. First out of the gate, we recommend this fine post by Craig Hockenberry of IconFactory talking about a rather clever solution — and we’re all about the clever — to the job of integrating tasks:

Since your application’s scope is limited to one task, users will depend on it when they want to perform that task. Even if that task is in the context of another application.

An example of this is sharing photos. Users know that the Camera application takes pictures and that the Mail application sends messages. You don’t see a camera button in Mail; you see an “Email Photo” button in your Camera Roll. The user’s first task it to take a picture and the next task is to mail it.

Since we’re not Apple, we can’t achieve the high level of integration between the Camera Roll and the Mail application. But we can use URL schemes to accomplish much the same thing…

That’s an interesting approach. Generally we think of URLs solely in terms of delegating content handling from a webpage link, but certainly applications could use it to integrate directly. The example project they posted, “Redacted”, demonstrates the use of this by defining the “twitterrific” URL scheme for posting to this Twitter thing which those crazy kids are so excited about:

You could write your own Twitter update code using a NSURLConnection, or you could use one line of code like this:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"twitterrific:///post?message=EASY"]];

That’s pretty simple, all right. However, there are some caveats to be aware of:

Not to dampen your enthusiasm, but please be aware of a couple of limitations with URL schemes. First, there is no way to know if a URL scheme is supported or not (rdar://problem/5726829). Currently, the best you can do is to performSelector:withObject:afterDelay: then openURL:. If the selector gets called you know that the URL failed to open. Also, be aware that deleting an application can sometimes leave the URL registration database in a state where it no longer recognizes a scheme (rdar://problem/6045562). This only happens when two applications support the same URL scheme, so you can avoid the problem by using a unique scheme name. Please use the Radar bug ID# for a “me too” bug report if this becomes a problem in your own application.

Despite those caveats, an interesting technique indeed that all of us should look for ways to support in our application:handleOpenURL: methods, indeed!

h/t: Daring Fireball!

Continue Reading →
0

Is it chilly in here?

My, it’s nippy out today. Brrrrrrr. That’s strange … ah, that’s what happened, Apple finally promised to drop the Fantastic NDA!

We have decided to drop the non-disclosure agreement (NDA) for released iPhone software.

We put the NDA in place because the iPhone OS includes many Apple inventions and innovations that we would like to protect…

However, the NDA has created too much of a burden on developers, authors and others interested in helping further the iPhone’s success, so we are dropping it for released software. Developers will receive a new agreement without an NDA covering released software within a week or so…

Well, that’s certainly good news! From no longer having to worry about how to use Open Source software in development when the opened source would conflict with the NDA through being actually able to write something on this allegedly iPhone development focused blog without risking our livelihood by way of actually being able to form a public community of developers and authors around iPhone development without casually disregarding our signed word, this is certainly a bright day all around.

Not that we can blame the Fine NDA’s chilling effect for the loooooong gap in posts that some of you who actually follow this instead of just showing up here from Google have probably noticed. No, we decided September was time for a nice break, so we headed up even further north to visit some serious middle of nowhere, like this Alaskan place that calls itself The Salmon Capital Of The World,

even though of course we all know that’s actually Campbell River on Vancouver Island not some USian tourist trap. But hey, now that we’ve been to both Salmon Capitals Of The World we’re set for sure.

As well, we hit The Land Of The Midnight Sun,

although we didn’t get quite far enough north for that, bah, it was still dark at midnight for us. However, a visit’s a visit, and that gives us a nudge up at mosttraveledpeople.com:

Welcome Alex Curylo!  Your MTP ranking is #405.  You have visited 149 places and have 549 remaining.

Oh yeah! At our rate so far this year we’ll be done … in February of 2283 A.D. OK, guess we have to work a little faster then…

Continue Reading →
0
Page 3 of 3 123