This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// JBSpotifyLoginViewController.h | |
// JukeBox | |
// | |
// Created by Andrei on 9/2/13. | |
// Copyright (c) 2013 andreipatru. All rights reserved. | |
// | |
#import "SPLoginViewController.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <CoreData/CoreData.h> | |
@interface NSManagedObject (Cloner) | |
- (NSManagedObject *)clone; | |
- (NSManagedObject *)cloneInContext:(NSManagedObjectContext *)differentContext; | |
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <CoreData/CoreData.h> | |
@interface NSManagedObject (Cloner) | |
- (NSManagedObject *)clone; | |
- (NSManagedObject *)cloneInContext:(NSManagedObjectContext *)differentContext; | |
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@interface ShoppingCart : NSObject | |
@property (nonatomic, strong) NSArray *items; | |
@property (nonatomic, strong) NSString *couponCode; | |
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "ShoppingCart.h" | |
int main(int argc, const char * argv[]) | |
{ | |
@autoreleasepool { | |
ShoppingCart *cart = [[ShoppingCart alloc] init]; | |
cart.couponCode = @"1235AB1"; | |
NSMutableArray *items = [[NSMutableArray alloc] init]; | |
[items addObjectsFromArray:@[@"Book", @"Guitar", @"Sweater", @"Coffee Pot"]]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void ChangeString(NSMutableString *theString) { | |
[theString insertString:@"xyzabc" atIndex:3]; | |
NSLog(@"String inside ChangeString: %@", theString); | |
} | |
int main(int argc, const char * argv[]) | |
{ | |
@autoreleasepool { | |
NSMutableString *aString = [[NSMutableString alloc] initWithString:@"This is my string"]; | |
NSLog(@"String before ChangeString: %@", aString); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######################### | |
# .gitignore file for Xcode4 / OS X Source projects | |
# | |
# NB: if you are storing "built" products, this WILL NOT WORK, | |
# and you should use a different .gitignore (or none at all) | |
# This file is for SOURCE projects, where there are many extra | |
# files that we want to exclude | |
# | |
# For updates, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects | |
######################### |