Open subdigital opened 3 years ago
originally written by Marius Lan on 01/10/2013 10:33:45
What kind of Theme do you use?
originally written by subdigital on 01/10/2013 15:01:06
I use a theme called Obsidian Code. You can find a link on the About page.
--
Ben Scheirman
originally written by Maximilian Tagher on 01/10/2013 20:06:29
This is my most-used snippet. It prints the class name, selector, and line number, which is great for NSLog debugging. I also put this before any exception throw or error message (or anything else that would spit a message to the console that you'd have to track down manually or by text searching.)
NSLog(@"<%@:%@:%d",[self class],NSStringFromSelector(_cmd),__LINE__);This version uses the <##> syntax to add a custom message, which is nice to add context.NSLog(@"<%@:%@:%d\n<#Custom Message#>",[self class],NSStringFromSelector(_cmd),__LINE__);
originally written by Mark Struzinski on 01/11/2013 14:08:04
This was a very useful episode. I didn't know about the xcodesnippets ruby gem. I have gone back and forth between using Xcode snippets and simply using TextExpander to populate frequently used blobs of code. The Xcode snippets are much more elegant, but I always forget to port my snippets when working from a different machine or moving to a new machine. TextExpander just seems more portable with its Dropbox integration.
Does anyone have ideas around portability, aside from remembering to push to a Github repo?
originally written by subdigital on 01/11/2013 14:40:17
I also have a few TextExpander snippets, but I am moving more towards Xcode Snippets because once you solve the share ability problem (which should be as easy as installing a gem IMO) then sharing w/ the community will be much easier, and hopefully we can have popular snippet packs that you can easily install on a new machine.
I think we have the basic building blocks to build such a thing: git repos, xcodesnippets gem, just need some scripts to tie it all together.
--
Ben Scheirman
originally written by Ray on 01/11/2013 21:30:46
good point Ben, looking forward to it
originally written by Vladimir Prudnikov on 06/25/2013 19:08:41
Hello, I'm a developer of Snippets http://snippets.me/. Recently we release our new feature called Distributors. You can use a distributor for Xcode to manage Xcode snippets from within Snippets. It is free app and also supports sync. Check out the demo of Distributor for Xcode http://www.youtube.com/watc...
Written on 01/10/2013 04:25:01
URL: https://nsscreencast.com/episodes/48-code-snippets