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
- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string { | |
NSString *newString = [[textField text] stringByReplacingCharactersInRange:range withString:string]; | |
[textField setText:[newString uppercaseString]]; | |
return NO; | |
} |
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
- (NSArray *)layoutAttributesForElementsInRect:(CGRect)rect { | |
NSMutableArray *attributesToReturn = [NSMutableArray array]; | |
NSInteger totalItems = [[self collectionView] numberOfItemsInSection:0]; | |
for (NSInteger i = (totalItems - 1); i >= 0; i--) { | |
NSIndexPath *indexPath = [NSIndexPath indexPathForItem:i inSection:0]; | |
CGRect itemRect = [[self layoutAttributesForItemAtIndexPath:indexPath] frame]; | |
if (CGRectIntersectsRect(itemRect, rect)) { | |
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
(lldb) bt | |
* thread #5: tid = 0x2203, 0x3390c518 WebCore`WebCore::RenderArena::free(unsigned long, void*), stop reason = EXC_BAD_ACCESS (code=1, address=0x1ac) | |
frame #0: 0x3390c518 WebCore`WebCore::RenderArena::free(unsigned long, void*) | |
frame #1: 0x339f914a WebCore`WebCore::RenderWidget::deref(WebCore::RenderArena*) + 26 | |
(lldb) |
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
(lldb) bt | |
* thread #5: tid = 0x2203, 0x33a43cbc WebCore`WebCore::FrameLoader::cancelledError(WebCore::ResourceRequest const&) const + 4, stop reason = EXC_BAD_ACCESS (code=1, address=0x8) | |
frame #0: 0x33a43cbc WebCore`WebCore::FrameLoader::cancelledError(WebCore::ResourceRequest const&) const + 4 | |
frame #1: 0x3396d334 WebCore`WebCore::ResourceLoader::init(WebCore::ResourceRequest const&) + 172 | |
frame #2: 0x3396d1dc WebCore`WebCore::SubresourceLoader::startLoading() + 20 | |
frame #3: 0x3396cfc4 WebCore`WebCore::ResourceLoadScheduler::servePendingRequests(WebCore::ResourceLoadScheduler::HostInformation*, WebCore::ResourceLoadPriority) + 52 | |
frame #4: 0x33972980 WebCore`WebCore::ResourceLoadScheduler::servePendingRequests(WebCore::ResourceLoadPriority) + 300 | |
frame #5: 0x338cfd22 WebCore`WebCore::ThreadTimers::sharedTimerFiredInternal() + 98 | |
frame #6: 0x338cfc94 WebCore`_ZN7WebCoreL10timerFiredEP16__CFRunLoopTimerPv + 64 | |
frame #7: 0x3589fa32 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_ |
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
- (void)insertCell:(UIView *)cell atIndex:(NSInteger)index animated:(BOOL)animated { | |
CGFloat duration = animated ? kHorizontalTableViewAnimationDuration : 0; | |
CGRect contentRect = [contentView frame]; | |
CGFloat colWidth = [dataSource horizontalTableView:self widthForCellAtIndex:index]; | |
CGFloat colHeight = [dataSource respondsToSelector:@selector(horizontalTableViewCellHeight:)] ? | |
[dataSource horizontalTableViewCellHeight:self] : contentRect.size.height; | |
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
// | |
// NECacheObject.h | |
// | |
// Created by nrj on 4/28/11. | |
// | |
#import <Foundation/Foundation.h> | |
@interface NECacheObject : NSObject <NSCoding> { |
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
// | |
// NECacheObject.m | |
// | |
// Created by nrj on 4/28/11. | |
// | |
#import "NECacheObject.h" | |
@implementation NECacheObject |
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
NSArray *neighbors = [currentNode getWalkableNeighbors:[currentMap tiles]]; | |
int newG = [AStarUtil distanceTraveled:currentNode] + 1; | |
for (id <AStarNode>neighbor in neighbors) { | |
if (neighbor == [ghost currentTile]) continue; | |
if ([closedList containsObject:neighbor] && newG < [neighbor g]) { | |
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
// | |
// BitmapImage.m | |
// GhostGuy | |
// | |
// Copyright 2010 Nick Jensen <http://goto11.net> | |
// | |
#import "BitmapImage.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
// | |
// BitmapImage.h | |
// GhostGuy | |
// | |
// Copyright 2010 Nick Jensen <http://goto11.net> | |
// | |
#import <Foundation/Foundation.h> | |
typedef unsigned char byte; |
NewerOlder