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)refreshFavicons:(NSArray *)subscriptions | |
force:(BOOL)flag | |
{ | |
LOGGED_IN | |
for( GDataSubscription * subscription in subscriptions ) | |
{ | |
if( ! flag && [[self delegate] respondsToSelector:@selector(gDataController:checkFaviconExistanceForSubscription:)] ) | |
{ | |
if( [[self delegate] gDataController:self |
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
if( [bottomButtons count] != 0 ) | |
{ | |
NSMutableArray * newArray = [[[NSMutableArray alloc] init] autorelease]; | |
for( NSInteger i = [bottomButtons count] - 1; i >= 0; i-- ) | |
{ | |
[newArray addObject:[bottomButtons objectAtIndex:i]]; | |
} | |
float startY = 0.0 + ( CAFF_POPUP_SHADOW_PADDING + CAFF_POPUP_PADDING + CAFF_POPUP_ARROW_HEIGHT ); | |
float startX = 0.0 + ( CAFF_POPUP_SHADOW_PADDING + CAFF_POPUP_PADDING + CAFF_POPUP_ARROW_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
/* | |
Copyright (c) 2011 Curtis Hard - GeekyGoodness | |
Permission is hereby granted, free of charge, to any person obtaining | |
a copy of this software and associated documentation files (the | |
"Software"), to deal in the Software without restriction, including | |
without limitation the rights to use, copy, modify, merge, publish, | |
distribute, sublicense, and/or sell copies of the Software, and to | |
permit persons to whom the Software is furnished to do so, subject to | |
the following conditions: |
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
// | |
// NSReadability.m | |
// Caffeinated | |
// | |
// Created by Curtis Hard on 19/08/2011. | |
// Copyright 2011 GeekyGoodness. All rights reserved. | |
// | |
#import "GGReadability.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
- (NSInteger)wordCount | |
{ | |
NSInteger length = [self length]; | |
NSRange inputRange = NSMakeRange( 0, length ); | |
NSInteger count = 0; | |
while( YES ) | |
{ | |
NSRange range = [self rangeOfCharacterFromSet:[NSCharacterSet whitespaceCharacterSet] | |
options:NSCaseInsensitiveSearch | |
range:inputRange]; |
NewerOlder