Skip to content

Instantly share code, notes, and snippets.

@implementation AreaViewControllerElement
-(id)init
{
if (self = [super init])
{
_objectID = -1;
_name = @"";
_address1 = @"";
_address2 = @"";
@interface AreaViewControllerElement : NSObject
@property (nonatomic) NSInteger objectID;
@property (nonatomic, copy) NSString *name;
@property (nonatomic, copy) NSString *address1;
@property (nonatomic, copy) NSString *address2;
@property (nonatomic) NSUInteger diversionRate;
@property (nonatomic, strong) CLLocation *location;
@property (nonatomic) CLLocationDistance distance;
@end
@interface AreaViewControllerElement : NSObject
@property (nonatomic) NSInteger objectID;
@property (nonatomic, copy) NSString *name;
@property (nonatomic, copy) NSString *address1;
@property (nonatomic, copy) NSString *address2;
@property (nonatomic) NSUInteger diversionRate;
@property (nonatomic, retain) CLLocation *location;
@property (nonatomic) CLLocationDistance distance;
@end
@interface AreaViewControllerElement : NSObject
@property (nonatomic) NSInteger objectID;
@property (nonatomic, copy) NSString *name;
@property (nonatomic, copy) NSString *address1;
@property (nonatomic, copy) NSString *address2;
@property (nonatomic) NSUInteger diversionRate;
@property (nonatomic, strong) CLLocation *location;
@property (nonatomic) CLLocationDistance distance;
Mon 02:58AM Christer: tyl. Did you watch it?
Mon 03:00AM nickfox: tyl doesnt live here anymore.
Mon 03:01AM Christer: Ah, my IRC crashed for some reason.
Mon 03:02AM otiose: its an old one, so i didnt know if people would know it
Mon 03:05AM nickfox: Christer: tyl wasnt paying attention and he got run over by a steam roller. he is now 0.547 inches thick. needless to say, he did not survive the experience.
Mon 03:05AM nickfox: http://sidoxia.files.wordpress.com/2010/03/steam-roller.jpg
Mon 03:06AM Christer: Good thing his nick maybe representing his religion: "Thank You Lord" :)
Mon 03:06AM nickfox: i have cut him up into small squares and i'm selling souvenirs for $4.99 through paypal.
Mon 03:07AM Christer: Oh, i was wondering what the hell a TYL toothpick was on ebay. it all makes sense now.
- (void)ccTouchEnded:(UITouch *)touch withEvent:(UIEvent *)event {
CGPoint location = [self convertTouchToNodeSpace:touch];
CCParticleSystem* emitter = [CCParticleExplosion node];
emitter.position = ccp(location.x, location.y);
emitter.life = 3.0f;
emitter.duration = 2.7f;
emitter.lifeVar = 0.1f;
emitter.totalParticles = 200;
//
// AppDelegate.m
// Ch7
//
// Created by Kyle Roche on 9/5/11.
// Copyright Isidorey 2011. All rights reserved.
//
#import "cocos2d.h"
//
// WSMViewController.m
// CollectionViewTests
//
// Created by Nick Fox on 8/29/13.
// Copyright (c) 2013 Nick Fox. All rights reserved.
//
#import "WSMViewController.h"
#import <AssetsLibrary/AssetsLibrary.h>
+ (ALAssetsLibrary *)defaultAssetsLibrary
{
static dispatch_once_t pred = 0;
static ALAssetsLibrary *library = nil;
dispatch_once(&pred, ^ {
library = [[ALAssetsLibrary alloc] init];
});
return library;
}
- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath{
UICollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"Cell" forIndexPath:indexPath];
if ([thumbnails count] > 0) {
UIImageView *cellImageView = (UIImageView *)[cell viewWithTag:100];
cellImageView.image = [thumbnails objectAtIndex:indexPath.row];
}
return cell;