Skip to content

Instantly share code, notes, and snippets.

@MrRooni
MrRooni / gist:4988922
Created February 19, 2013 19:16
UITableView and NSFetchedResultsController: Updates Done Right
@interface SomeViewController ()
// Declare some collection properties to hold the various updates we might get from the NSFetchedResultsControllerDelegate
@property (nonatomic, strong) NSMutableIndexSet *deletedSectionIndexes;
@property (nonatomic, strong) NSMutableIndexSet *insertedSectionIndexes;
@property (nonatomic, strong) NSMutableArray *deletedRowIndexPaths;
@property (nonatomic, strong) NSMutableArray *insertedRowIndexPaths;
@property (nonatomic, strong) NSMutableArray *updatedRowIndexPaths;
@end
@ongaeshi
ongaeshi / cocoa-emacs-backslash.el
Created January 27, 2012 14:30
Cocoa Emacsでバックスラッシュが上手く入力出来ない対策
;;--------------------------------------------------------------------------
;; Cocoa Emacsでバックスラッシュが上手く入力出来ない対策
;;
;; MacなEmacsでバックスラッシュを簡単に入力したい - Watsonのメモ
;; http://d.hatena.ne.jp/Watson/20100207/1265476938
;;
;; Carbon Emacs で「\(バックスラッシュ)」を入力する - あいぷらぷら;
;; http://d.hatena.ne.jp/june29/20080204/1202119521
;;--------------------------------------------------------------------------
(define-key global-map [?\¥] [?\\])