Download the new Switched app for your iPhone

Skip to Content

Watch Gadling TV's "Travel Talk" and get all the latest travel news!
AOL Tech

code posts

Filed under: Software, iPhone, App Store, SDK

iPad SDK allows you to take photos and other insights

Turns out a camera in the iPad may have been closer than we thought -- Engadget has been diving into the SDK released yesterday (NDAs be darned, I guess?) and discovered that the ability to "Take Photo" is still hidden in the iPad's code. Of course, the device doesn't actually have a camera, but the fact that there's code written for one could mean that prototypes of the device did have a camera, and/or that we'll eventually see one in a future revision.

There's a few other interesting things sneaking out of the SDK as well, including the fact that "popovers" (those windows and menus that were popping up in the video yesterday) are listed in Human Interface Guidelines as iPad-only flair. That would make designing for the two platforms pretty different -- while it's certainly possible, as we learned yesterday, to run iPhone apps on the new platform, it seems like Apple is telling developers that iPad apps will have a very different feel than their smaller predecessor's versions. A year from now, the two platforms may end up being different markets entirely.

Update: The "touch to return to the call" bar made the trip to the iPad, too. Makes it more likely that this is just vestigial code.

Filed under: Software, Reviews, Friday Favorite

Friday Favorite: Snippets

Welcome to Friday Favorites! Every Friday, one of us will get all sloppy over an app, web service, or Mac feature that makes us grin like an idiot every time we use it. This week, Brett tells us about his favorite new snippet manager.

If you write code, you probably reuse blocks of it. Whether you're working in HTML, CSS, AppleScript, Objective-C ... it's all code, and a really well-written chunk of it deserves to be used again. You can put a few of your most commonly used snippets into TextExpander, sure, but the biggest problem is finding that function you know you wrote last year but haven't used since. This common little conundrum has given rise to some very elegant applications that aim to solve this and other related problems.

There have been a few great options lately for snippet organization. CodeCollector Pro has been my long-running favorite, with Snippet a close second. I like Snippet's sexiness, but miss having a nice, big, multi-pane window to organize with. CodeCollector Pro is a solid workhorse, but actions such as adding new snippets are a little more cumbersome than I'd like. I often just clip things into Evernote when I'm in a hurry ...

Then, along came Snippets (note the 's' that differentiates it from Snippet) to steal my heart. It's got Code Collector's utility, Evernote's searchability, and it's got an extra dash of sexy, ala Snippet. It has the standard sytax-highlighted code viewer, and a sidebar with groups and folders. Snippets are classified by language, which can be set in a dropdown or by just dragging a snippet to a language folder. It functions on a hybrid folder/tag concept, which happens to be the way I do just about everything. Each snippet can have a description, as well as labels (tags) and all full-text indexed for searching. You've also got groups, which are like folders, but a snippet can belong to multiple groups. It has smart folders which, as you know, function like automatic groups with boolean criteria. On top of all that, folders, smart folders and groups can all be gathered hierarchically in nested folders, with parent folders showing all of the contents of their child folders. Whew!

Continue readingFriday Favorite: Snippets

Filed under: Developer, iPhone, App Store

The 12-hour iPhone app

Gizmodo has an interesting story from David Quinlan, a coder who decided to sit down over a weekend with a few friends to crank out an iPhone app. It's an excellent read, not only for the little quirks and tips about organizing a collaborative project very quickly (they sketch out features and then prioritize them, and use Dropbox to keep all the files in the right places), but for the sheer push of how you actually go from idea to concept to code and finally to released iPhone app.

I won't say it sounds easy -- these guys had a good amount of experience at development and releasing software even before they started work on this app, and if you sit down with Erica's book [Amazon link to the 2nd edition, PDF downloadable version] and hope to release your very first piece of code after just a weekend of solo work, it's not going to happen. But it definitely sounds possible -- the iPhone's development platform is relatively easy to pick up (especially if you're already experienced with coding in other languages), and Apple's release process is open to anyone willing to spend the $100 to become an official developer.

Filed under: Accessories, Tips and tricks, Bluetooth, iPhone, iPod touch, iPod classic, Music

More than one way to stream Bluetooth


Want an easy way to use the Bluetooth in your iPhone/iPod touch to stream music to your traditional stereo? The new Belkin Bluetooth Music Receiver, announced this week, should do the job nicely. It's a little dongle that connects to your stereo either through a 3.5mm headphone jack or, using RCA cables, to the AUX inputs in the back of your system. It will remember half a dozen Bluetooth devices and let you stream music up to 33 feet away at a cost of $49.99 US.

Honestly, I didn't see the big deal, since I've been doing this for quite a long time using the now discontinued Griffin BlueTrip. The BlueTrip was made to stream Bluetooth audio from an iPod to a stereo using a dongle that plugs into the 30 pin connector adding BlueTooth to iPods that didn't have it built in. But what if you have an iPhone rather than an iPod? We've got you covered there, too -- read on.

[via Engaget]

Continue readingMore than one way to stream Bluetooth

Filed under: Hardware, OS, Software, Apple

Psystar alienates the Hackintosh community, too

Say what you will about Psystar, the community that continues to sell computers running OS X, despite bankruptcy, constant legal problems with Apple, and a case so slim even their own legal team gave up. Sure, they're out of reason, out of room, and way out of line, but at least they've got plenty of cojones, as the locals say.

Why else would they say the things they do in this Miami Times article? Our friends at Engadget lay out just what's wrong with that piece, from Robert and Rudy's Pedraza's claims that they "cracked the code" behind OS X, to the suggestions and hints that what they're doing just might not be a contract violation. Whether or not Apple's EULA is enforceable is, of course, one of the arguments at issue in Psystar's case, even though plenty of shrinkwrap licenses have been upheld in court before. Apple's also got a copyright infringement claim against Psystar; this will be one of the topics at today's summary judgement hearing in California.

But the kicker in all this is the statement that Rudy Pedraza makes about the famed Hackintosh scene -- a community of people who persist in running OS X on hardware and devices that it wasn't supposed to run on (not nearly as much of a problem to Apple, as they don't sell the capability like Psystar does, but still not technically allowed by the license agreement). Surely, you might think, this is where the Pedrazas could find friends; surely, despite all of the commotion they're causing, this is the place where they could find a kind ear and a helping hand. Nope. From the article: "The first thing you have to do is unlearn everything you've read online about how to make this work," Rudy says, "because it's all wrong."

Nice. Way to alienate the one group, the one community that might still support your cause. I wish Psystar the best of luck -- not, mind you, because I need to buy or run any of their machines (I buy Apple because I appreciate both the hardware and the software), but just because their story continues to be so darn entertaining.

Filed under: Gaming, Software, Apple, Developer, iPhone, App Store

C64 emulator un-approved again

The first thing I thought when I saw that the C64 emulator we posted about the other day still had the BASIC interpreter hidden in it was, "Well that won't last." And unfortunately for fans of software emulation on the iPhone, I was right: the software got pulled from the App Store but quick. You can't really blame Apple here -- they've made it pretty clear that they don't actually want people running unlicensed, emulated code on the iPhone, so it's not hard to see why, when it was discovered you could still activate the interpreter, they cleared it out of the store.

The good news is that the emulator has been updated to delete the interpreter completely, and the owners of the software have resubmitted it yet again to the App Store. But as much as I enjoy seeing emulators on the iPhone (I've made it very clear I'd love to see an official NES arcade app), I can't say I'd blame Apple for just passing on this one outright. They've had to go through this app at least twice now, and especially since app approval is already taking so long, that's pretty much a waste of time. Mistakes like leaving the BASIC in the app (Edit: My mistake -- they intentionally left it in and hidden, with the expectation that Apple would later allow it. Doesn't seem very likely.) are making it much easier at this point for Apple to just say "no emulators, period," and move on. Hopefully this app will get re-approved, and that'll be the end of it.

Filed under: Software, Cool tools, Developer

Developer Color Picker: For your pickiest developer

Wade Cosgrove, code ninja over at Panic, has released a freeware Developer Color Picker that helps developers of all stripes pick and paste color declarations for a variety of languages.

Any color picker will let you choose a color from anywhere on your screen, but Developer Color Picker turns that into usable code for your Xcode and web development projects. Developer Color Picker generates code suitable for NSColor, UIColor, CGColorRef, CSS and HTML declarations.

Depending on what you want, you can copy just the value for the color itself, or an entire declaration including the color. Imagine the time you save not having to type UIColor *aColor = [UIColor colorWithRed:0.282 green:0.569 blue:0.894 alpha:1.000]; again!

Developer Color Picker is available on Panic's website.

Filed under: Analysis / Opinion, Software, Freeware, Graphic Design

Google releases Visigami, open source image browser



The guys over at the Google Mac blog have dropped a new little open source application called Visigami, which serves as a more "interesting" and "fun" way to browse and play around with images online. Basically, after installing the app, you can then pull in pics from Picasa, Google Images, or Flickr (iPhoto is just a suggestion so far), and then search, animate, zoom in or out on them, and even turn them right into a screensaver.

It's a pretty neat little application -- not exactly the kind of thing that anyone has probably been hoping for (it seems more fun than utilitarian), but if you find yourself often browsing photos online, this definitely seems like a more fun way to do it. And it's one more reason to praise all the great developers working on our platform -- it's little apps like this that make the Mac user experience so much better.

Filed under: Analysis / Opinion, Cult of Mac, Apple, iPhone

Community goes extremely overboard on iPhone Extreme


Tom from iPhonebuglist.com was poking around in Apple's online feedback form, and as you can see above, he found something interesting hidden in the HTML code. There was a product tag on the form not for the iPhone, but for the "iPhone Extreme." The page has since been fixed, and there's no trace of it ever appearing.

We completely agree with Apple Insider on this one: it's a stretch to say this is anything more than a coder mixup. Still, there it is, right there (in a Windows window! Tom, how dare you!). Could it be a "sport" version of the iPhone? Or a home device designed to serve as a standalone, Mac-less dock for your iPhone on your Airport Extreme network?

Probably neither. I'm pretty sure a comment over at 9-to-5 Mac has it right (although the site themselves went way overboard, calling a February release on what is really an imaginary product): whoever coded the page just used the Airport Extreme template, and did a mass cut-and-paste with "iPhone" and "Airport." Amazing that the Mac community can get so worked up over what almost surely is simply a coder's mistake.

Thanks to everyone who sent this in!

Filed under: iTS, Tips and tricks, Apple, Deals

Free iTunes song for UK SMS users

Alan dropped a quick note about a chance for our UK readers to get a free iTunes song. Those of you overseas may have been complaining that Apple treats you like second class citizens, but Britons, worry not, because they're bribing you with a song. Send an SMS with the words "ROCK," "POP," "LIVE," or "ITUNES" to 85100, and Apple will send you back a code for a free song on the iTunes UK store.

The promotion ends on September 30th, so you've got to get it done quick, and this is definitely a YMMV situation. It won't work outside of the UK, and I even tried to send the code using iChat, but no dice -- apparently it has to come from a phone number there. It's not exactly free, either -- as you may have figured out, it's actually the cost of sending and receiving an SMS. If that's more than £0.99, it's not worth it.

But if you're in the UK and have an itchy SMS finger, send it along and see what happens.

Filed under: Analysis / Opinion, Software, Apple, Developer

Cabel's Coda toolbar and the Three Pixel Conundrum

Panic's Cabel Sasser has updated his blog (finally! His Miis were cute and all, but I was tired of seeing them every day) with a really interesting post about how he designed the toolbar for the everything-web-development tool that apparently is the bee's knees, Coda.

Instead of using the standard rounded bevel of OS X's unified toolbar, Sasser decided he wanted to do something a little different, and created a tab-ish vertical indent. Unfortunately, the way OS X's toolbars work didn't vibe with his idea (there were just three pixels at the bottom that couldn't be edited the way he wanted), so the Panic team ended up developing their own entire toolbar. That, he says, is why you can't rearrange the icons in Coda-- because the app isn't using the system toolbar.

But the best part is saved for last. All the hard work paid off, because even though Sasser had to drive his team nuts just to figure out a way to get around those three pixels, Apple eventually agreed with him. And the new toolbar in Leopard looks strangely familiar. Great story, and a real shot in the arm to developers who might not otherwise be pushed to bother with all the coding required to get the look they want exactly right.

[ via DF ]

Filed under: iPhone

Journeys inside the iPhone's SDK

I have now spent a pretty solid week writing applications for the iPhone. And what an exciting week it's been. I've been privileged to view and interact with the iPhone in a way that few other people have had the opportunity to. The iPhone is tight, robust and its SDK--even seen through such imperfect tools as class-dump--is beautiful.

Let me give you an example. This morning I decided to write a basic word processor for the iPhone. In about 30 lines of code, I was able to create an application that saved all changes to disk and reloaded that text launching the application. That kind of success doesn't happen because I'm some sort of phenomenal programmer, it happens because Apple makes amazing, usable libraries. I was able to use classic Cocoa strategies like reading a string to and from disk and combine it with new UIKit strategies like creating a keyboard that automatically knows how to enter and edit text.

Continue readingJourneys inside the iPhone's SDK

Filed under: WWDC, Leopard, Developer

Xray your code with new dev tool


A few tipsters have dropped us notes (thanks!) that on Apple's Developer Tools page, there's a new tool. Along with Xcode and Dashcode, there's a new, very pretty app called Xray. The flavor text itself says the app takes "interface cues from timeline editors such as GarageBand," so what we're looking at here seems to be a realtime application tester and analyzer.

The three windows in the screenshot show stats on "Network Traffic," "CPU Load," and "Reads/Writes," and Apple also says devs will be able to track user events and even the OpenGL video driver. Looks like it will bring all the new tracking tools and analysis junk (technical term) together in a browsable, graphical interface, which means an easier time for devs, which means better apps for all of us. Groovy!

Filed under: Software, Internet Tools, Open Source, Blogs

Google Summer of Code kicks off with Camino, Adium, Thunderbird and more

Google's Summer of Code is a really cool, really massive project focused on open source that first started back in 2005. It functions on a pretty simple concept: the company gives out grants to student developers (this summer they brought on 900 from a list of 6,200 applicants) to work on open source projects for the summer, and we all subsequently benefit in one way or another. Take a gander through the long list of projects on the menu for this summer, and click on any to see what the goals are.

Whether or not these goals are met by the end of the summer is another thing entirely, but there are some great projects and features on the list for such apps as Adium, Camino, Thunderbird, Inkscape and much more. Adium, for example, might gain features like basic voice chat, AppleScript and Bonjour support, while a juicy feature on Camino's todo list is Tabsposé, bringing the window management wonders of Exposé (much like the WebKit-based Shiira features) to the more Mac-like alternative to Firefox. In fact, one of the developers involved with working Tabsposé for Camino is blogging the effort, with a few posts already online covering developer-oriented topics like getting caught up with minor details and coding resources, but also including teaser mockups of what Tabsposé might eventually look like.

Long story short: Google's third round of Summer of Code looks like it will again do some great things for Mac OS X software and open source on a broader scale. Heck, those open source developers are even getting paid, which must be a nice change of pace for some of them. We'll keep an eye on what new features arise from this Google-funded coding powwow at the end of the summer.

Filed under: Software, Productivity, Internet Tools

Free HTML snippet file for TextExpander

TextExpander is another favorite utility in the TUAW tool belt, as it can save a boatload of time with repeatedly typing anything from email signatures to canned customer service replies and even code. In fact, SmileOnMyMac just made HTML coding a bit easier on web designers and hackers everywhere by posting an HTML snippet file that contains abbreviations for over 60 common pieces of HTML, ripe for cutting down on the time it takes to hand code your sites. This file should serve as a great example of the power of TextExpander, since SmileOnMyMac made sure to use some of the app's tricks that insert the cursor in a useful place after expanding a snippet, such as in between the quotes of: <a href=""></a>, allowing you to easily fill in the blanks. But don't stop there - a little exploring of how these snippets are put together should enable you to build your own for the specific kinds of work and code you use.

This snippet file is free from SmileOnMyMac's site, and the highly recommended TextExpander sells for $29.95 with a whopping 90 day money-back guarantee.

Tip of the Day

Want to create custom shortcuts? Head to the Keyboard Shortcuts tab of the Keyboard and Mouse part of System Preferences to create shortcuts for common tasks that appear in the Services menu. You can also add application shortcuts for tasks that appear in the menu bar of those programs.

Follow us on Twitter!

TUAW [Cafepress] 

Featured Galleries

DNC Macs
Macworld 2008 Keynote
Macworld 2008 Build-up
Google Earth for iPhone
Podcaster
Storyist 2.0
AT&T Navigator Road Test
Bento for iPhone 1.0
Scrabble for iPhone
Tom Bihn Checkpoint Flyer Briefcase
Apple Vanity Plates
Apple booth Macworld 07
WorldVoice Radio
Quickoffice for iPhone 1.1.1
Daylite 3.9 Review
DiscPainter
Mariner Calc for iPhone
2009CupertinoBus
Crash Bandicoot Nitro Kart 3D
MLB.com At Bat 2009
Macworld Expo 2007 show floor

 

Our Writers

Victor Agreda, Jr.

Programming Manager, AOL Tech

RSS Feed

View more Writers

More Apple Analysis

AOL Radio TUAW on Stitcher