Skip to content

Instantly share code, notes, and snippets.

Frank Courville Frankacy

Block or report user

Report or block Frankacy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Frankacy
Frankacy / b.article
Created Jul 23, 2019
Bear Zettel Typinator Template
View b.article
# {YYYY}{MM}{DD}{h024}{m} - {{?Title}}
Source:
Tags: #&&
---
---
# Related Articles
@Frankacy
Frankacy / DataProviding.swift
Last active Aug 9, 2019
Swift data provider/presenter
View DataProviding.swift
//
// DataProviding.swift
// GenericsDataSource
//
// Created by Frank Courville on 2019-05-09.
// Copyright © 2019 iOS Coach Frank. All rights reserved.
//
import UIKit
View OperationsPart1.playground
import UIKit
import PlaygroundSupport
PlaygroundPage.current.needsIndefiniteExecution = true
class LoggingOperation : Operation {
override func main() {
if isCancelled {
return;
}
View FRKTableViewAdapter.h
@interface TableViewAdapter : NSObject <FRKDataProvider, UITableViewDataSource>
- (instancetype)initWithDataProvider:(id<FRKDataProvider, FRKSectionInfoProvider>)provider
dataPresenter:(id<FRKTableViewDataPresenter>)presenter;
- (void)registerCellsForTableView:(UITableView *)tableView;
@end
@Frankacy
Frankacy / FRKCoreDataProvider.h
Created Nov 15, 2016
Data Providers and Presenters
View FRKCoreDataProvider.h
#import <CoreData/CoreData.h>
#import "FRKDataProvider.h"
@interface FRKCoreDataProvider : NSObject <FRKDataProvider, FRKSectionInfoProvider>
- (instancetype)initWithFetchRequest:(NSFetchRequest *)fetchRequest moc:(NSManagedObjectContext *)fetchMOC;
- (instancetype)initWithFetchRequest:(NSFetchRequest *)fetchRequest moc:(NSManagedObjectContext *)fetchMOC sectionKeypath:(NSString *)section;
@end
You can’t perform that action at this time.