-
list rubies available
rvm list rubies
-
use ruby
rvm use 1.9.3
- create a rvmrc project file for project using ruby 1.9.3
rvm --rvmrc --create 1.9.3@projectname
#import <UIKit/UIKit.h> | |
@interface UILabel (VerticalAlign) | |
- (void)alignTop; | |
@end |
# Exclude the build directory | |
build/* | |
# Exclude temp nibs and swap files | |
*~.nib | |
*.swp | |
# Exclude OS X folder attributes | |
.DS_Store | |
static MyObject *singleton = nil; | |
+(MyObject *) sharedInstance { | |
NSLog (@"sharedInstance called."); | |
if (nil != singleton) return singleton; | |
static dispatch_once_t predicate; | |
dispatch_once(&predicate, ^{ | |
singleton = [[MyObject alloc] init]; |
#!/usr/bin/env ruby | |
########################################################################### | |
# Script to be called as an Xcode 4 behaviour which will attempt to | |
# uncrustify all source files in the open project. | |
# | |
# (c) Copyright 2012 David Wagner. | |
# | |
# Complain/commend: http://noiseandheat.com/ | |
# | |
#*************************************************************************# |
#!/usr/bin/env ruby | |
########################################################################### | |
# Script to be called as an Xcode 4 behaviour which will attempt to | |
# uncrustify all source files in the open project. | |
# | |
# (c) Copyright 2012 David Wagner. | |
# | |
# Complain/commend: http://noiseandheat.com/ | |
# | |
#*************************************************************************# |
Command | KeyBinding |
---|---|
Jump to definition | ⌃⌘J |
Show standard editor | ⌘⏎ |
Change the Xcode path
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
Create a script folder
mkdir scripts
Make a copy of the RunPlatformUnitTests file into your scripts folder
cp /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Tools/RunPlatformUnitTests scripts/
Update line 95 from
Warning ${LINENO} "Skipping tests; the iPhoneSimulator platform does not currently support application-hosted tests (TEST_HOST set)."
to
In most cases, you don't need to pick a specific size of integer to use in your code. Swift provides an integer type, Int
, which has the same size as the current platform's native word size:
Int
is the same size as Int32
Int
is the same size as Int64