Login

Create @property, @synthesize & dealloc from Variable Declaration [video]

Now a Gem!

One of the things we do a lot of in Objective-C is outlet and variable declaration, synthesize and dealloc. Since this is a repeatable recurring event I thought I would add a little automation to the process.

Click me to view code on Github

 

Edit Xode Document in TextMate User Script

This Xcode User Script will open the current Xcode document in TextMate.
Below are the Xcode settings.
 

Bash Functions for GIT and Dropbox

This script is now being maintained on GitHub.

I had recently mentioned an article on using GIT with Dropbox.

Using Git with Dropbox is very cool but things don't work exactly like they do when using a normal Git hosting company like GitHub. One major difference is creating and tracking remote branches.

I frequently work on projects from my desktop computer and my laptop. Using Dropbox makes this very convenient so I came up with a few bash functions that make using Git with Dropbox a little easier.

The code is documented but if you have any questions or suggestions, please leave them in the comments.

 

Webpage Selection to Snippets App

I really like the Snippets application and wanted an easy way to select some code on a webpage and insert that into Snippets. I also wanted to add the author, link, title, highlight style, license, notes and have the ability to edit the text before sending to Snippets.

Snippets has a URI-scheme of "snippet:add?code=" with several more options. This looked like what I needed so I started here. I created the JavaScript code below to use as a bookmark and then wrote a php page to handle the information gathered from the current page.
javascript:window.open("http://allancraig.net/Snippets/snippet.php?title="+encodeURIComponent(document.title)+"&code="+encodeURIComponent(window.getSelection())+"&link="+window.location, "createsnippet", "height=775,width=585,status=0,toolbar=0,menubar=0,location=0");

 
 

Product Categories

Welcome

Welcome to AllanCraig.net and thanks for visiting. Here you will find articles, tips and tricks, tutorials and video training. Video training is only now beginning to be produced so check back often for new releases.