By Zac White on August 20, 2008
Note: This is also mirrored on openclip.org.
Let me first explain how OpenClip works:
How it works is relatively simple and doesn’t break the SDK agreement. OpenClip works by looking into the Documents folder of other applications to get their pastes. Applications are allowed to write all they want to their own Documents directory (for copy), so no foul there.
Applications are also allowed to read outside their sandbox into the Documents directories for other apps (for paste), so no foul there.
How could that ever go wrong? What’s the problem?
The problem is Apple is probably going to shut down reading into other application’s boxes. I’m all for that as long as one of two things happens before:
- Apple ports NSPasteboard to the iPhone SDK (radar://6158362)
NSPasteboard is what I modeled OpenClip after. It allows copy and paste between applications, but more than that, it adds communication between applications. Porting NSPasteboard would make OpenClip moot and developers could easily respond by changing all references to OCPasteboard to NSPasteboard. Easy for everyone involved.
- Apple shuts down sandbox reading but creates a public folder for apps to write to. (radar://6156881)
If Apple does this, inter-app communication would still be possible through OpenClip or some other file communication method.
Applications need to work together. That’s the Apple Way®. I don’t know what you think, but to me the smaller and simpler an app is on the iPhone, the better it is. To make apps that are simple but powerful, developers need to make applications that can communicate.
What happens if Apple shuts it down?
Here’s what happens if a new version of the iPhone OS comes out and OpenClip can’t communicate anymore:
- Developers who implement OpenClip to either *only* copy or *only* paste can easily check if that will work before displaying any UI. If it breaks, those options just disappear.
- Developers who implement to do both copy and paste retain copy and paste within their application. That means that when and if the next update breaks OpenClip, applications won’t stop launching, they won’t crash when you try and copy and they won’t get garbage data. All that will happen is the app will only be able to copy and paste in the application. Not a horrible way to degrade if you ask me.
What about the UI? There are going to be like 20 implementations for copy/paste!
UI is a hard problem to solve. One of OpenClips goals is to provide examples of UIs for copy and paste. But to be honest, the best thing you can do with OpenClip is use it only for simple data. Only copy interesting data that a user would want to copy and present UI similar to Apple’s push to save image UI. Doing what MagicPad does and providing a whole way to select text is not what 90% of apps need. Look at what Twittelator did with copy in the video on GeekBrief.tv (http://www.geekbrief.tv/copy-and-paste-for-iphone). Press and hold needs to be the way most apps utilize copy and paste.
You can check out Proximi’s MagicPad UI proposal video here. It’s worth a look.
Lets face it. Hardly anyone is not buying an iPhone because it doesn’t copy and paste. It’s useful, but not necessary. Apple knows this so they put it at the bottom of their to-do list. If Apple were to implement NSPasteboard, however, 90% of apps could gain some really great functionality. Until then, maybe OpenClip can serve as a sneak peek to Apple, developers and users that this kind of framework would benefit the iPhone greatly.
Posted in apple, mine, openclip, software
By Zac White on August 2, 2008
I created an open source project for iPhoneDevCamp 2. It allows cross application copy and paste.
Basically, all you have to do to get the benefits is include a few classes and use the very simple API to copy data or paste data. The special part is cross application. Copy a cocktail in Cocktails and paste it into MagicPad (Video of this in action).
There are some limitations. This technically complies with all Apple agreements. It is completely possible that apps that use this wouldn’t get on the App Store. Not for any real reason other than it will eventually step on Apple’s toes. It is also conceivable that the technology this is built on will break in the future. The hope is that the update that breaks this also brings copy and paste support.
If you are interested in looking at some code, send me an email to zacwhite+copypaste@@at@@gmail..dot..com.
Update: Ok people. Go download the code at http://code.google.com/p/touchclipboard/. Willing to hear name ideas
Update 2: Video: http://www.viddler.com/explore/mager/videos/36/.
Ignore all that.
Update 3: Site is up. Check out OpenClip.org.
Posted in mine, software
By Zac White on July 3, 2008
Let me just take a moment to be thankful for this amazing event…
There is nothing more special than the big names in your favorite sub-culture getting together in one square block. WWDC is just that.
Continue reading “WWDC==Awesome”
Posted in Uncategorized
By Zac White on May 30, 2008
So it is that time again. Time to pack up and head to California for another badass week of techno-babble and nerd socializing. I totally know everything that will happen at the keynote, so I thought I’d share.
.Mac -> Mobile Me
Yep, that’s happening and guess what? It is going to be pretty nice. Third party developers can easily use the service to sync data between the iPhone and the Mac. Basically, developers can post data to Apple and it will get pushed to the iPhone. The best part? Buy an new iPhone and it comes with a year free. Oh, and Apple is going to add some pretty nice iPhone integration too. Think Visual Voicemail web interface kind of stuff.
iPhone gets 3G
Yeah, duh. There have been 3G rumors forever and it was bound to happen. It will have GPS, but not much software that utilizes it at first. Oh, we will finally be able to use the iPhone as a modem.
App Store
Not available after the keynote. We are going to get a nice little demo of apps, then Jobs is going to tell us that we should get out there and start putting the finishing touches (no pun intended) on our apps because in August they are going to launch the store. Yep, not until August, sorry.
OS 10.6 demo?
No.
Other Hardware?
Psh, what do I look like? A magic 8 ball? Speaking of that, I expect around 10 magic 8 ball apps at App Store launch.
There you have it. What do I win when I’m right?
Anyone wanting to meet up, let me know at first name + last name + @gmail.com.
Posted in Uncategorized
By Zac White on March 3, 2008
Who’s ready for the iPhone SDK? Me. In preparation, I’ve been working on a project I’m code-naming Engineer. That might change, but the app is a search application. At the moment, it searches SMS, Notes, and Contacts and it is pretty easy to add support for just about anything. I plan to add iTunes, Mail, Photos (if the computer’s metadata transfers over), and Events. For 1.0, expect a subset of those and for 1.5, expect all. I’m also designing it with plugins in mind, so anyone can write a plugin for their special data format.
I’m aware that this probably will get replace by Apple at some point. Duh, people need to search for stuff on their phone. But until then, I’ll get some iPhone practice.
Email me if you would like to know when it gets released: Zac White
Posted in apple, mine, software
By Zac White on January 11, 2008
Well, it has been quite a while since we talked. How are you? Good to hear. I’m fine thanks. Just wanted to let you know I redesigned my website…and when I say “I”, I mean I picked a different WordPress theme. That isn’t entirely true. I copied the design to other parts of the site so that everything is uniform. The theme is a slightly modified PocketT and I’m pretty happy with it. Very minimal, but still stylish.
One of my new year’s resolutions is to blog more, so to help with that, I purchased the badass MarsEdit 2. I bought MarsEdit 1 with NetNewsWire back in the day (which now is free!!). Ten bucks to get all the cool features of version 2 was a no brainer, so check it out if you haven’t.
Alright, I’ll have more later. I plan on posting some thoughts on some really old happenings so download the free NetNewsWire and subscribe, because I’m back!
Posted in site, this site
By Zac White on August 12, 2007
I finally entered an Iron Coder! The theme this year was “Conspiracy” and the API was “iPhone”. Which is a little funny considering there is no real API for the iPhone.
Basically what I did was write a little cocoa app that lives up in your menu bar and takes a shot with the iSight ever 5 minutes.
The reasoning being that if you are the victim of conspiracy the best way to uncover it all is to set up this “nanny cam” type thing. Basically the built in web server serves up an iPhone specific web page with all the images on it. Check it out:
SpiPhone
Just run it, make sure your isight’s plugged in, and then go to http://localhost:9138/ and test it out.
If you want to check out how I wrote it (it isn’t anything super special), the source is here.
I unfortunately didn’t win (my presentation lacked flash and generally sucked), but I did get 4 votes and I didn’t even vote for myself…
By the way, C4[1] was amazing. I will blog about it shortly.
Posted in apple, events, mine, software
By Zac White on June 15, 2007
What a great week. Not only did I have a great time at WWDC meeting a bunch of new people and hooking up faces to names, but I also got a C4[1] scholarship.
I actually got the news via twitter, which was kind of cool. I was in a session at the time and I’m pretty sure the people next to me were curious why I had a huge smile on my face while some guy was talking about fast enumerations…
Being the 1337 hacker that I am, I had a look at the essays (boy, figuring out that url was hard). All the essays were really good, so it is really an honor.
Now I have to figure out how to get/stay there…Anyone have a couch?
Posted in apple, life
By Zac White on June 10, 2007
So I arrived in San Fran yesterday and have a nice day today just jumping from bus to bus around the city. I ran into some fellow MacSB-ers and we wandered around together. We went to the Haight-Ashbury street fair which was…interesting. We ate at In-and-out in the warf and got a street car back. Quite nice.
I registered at Moscone before we left and now I’m worried. Apparently they aren’t letting students into the Keynote, just into the overflow room. This coupled with the cutting back on parties etc. really makes me think they might be giving something good to attendees…like a $200 off coupon for an iPhone or something. I know I don’t really deserve an iPhone since I didn’t actually pay to get in to WWDC…but it would be really a shame to be left out if they do give them away. The best way to break into the market is to give them to college students!
Of course, they wouldn’t give out coupons to devs unless Apple had plans to open up the API. I kind of have the feeling that Steve is going to say something like “Yeah, the iPhone is really great and we want you to make it greater. That is why we are working on a way to get widgets to the iPhone in a couple months. We’ll let you know how that goes. In the mean time, go buy one for 50% off!.”
Posted in apple, life
By Zac White on May 29, 2007
Before I get to SF.
After I leave SF.
CRAP. Oh well. I got to see Laura Veirs in Dallas and it was amazing. It was a really small venue with only about 40 people. I got a picture with her and a signed album, Year of Meteors, which is an amazing album if you haven’t heard it. Her new album, Saltbreakers, is amazing too. I really hope she tours again…

Posted in life, music, Uncategorized