Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modernize all the syntax!! #60

Merged
merged 14 commits into from
Nov 4, 2015

Conversation

chillpop
Copy link
Contributor

@chillpop chillpop commented Nov 3, 2015

Does what it says on the tin.

  • dot syntax for properties
  • properties not ivars
  • NSOperationQueue not dispatch_async
  • clean up CDLog duplication
  • code standards conformance

@vokal/ios-developers, want to look at some dot syntax?

instead of defaulting to SQLite
…rmatting

# Conflicts:
#	Paging Data Source Example/Core Data/Data Sources/VOKPlayerDataSource.h
#	Paging Data Source Example/VOKPagingViewController.h
#	Pod/Classes/VOKCoreDataManager.m
#	SampleProject/DataSource/VOKPersonDataSource.h
#	SampleProject/Models/VOKMappablePerson.h
#	SampleProject/VOKCoreDataManagerTests/CoreDataManagerDeleteTests.m
#	SampleProject/VOKCoreDataManagerTests/ManagedObjectImportExportTests.m
#	SampleProject/VOKViewController.h
@@ -223,24 +223,24 @@ - (void)tableView:(UITableView *)tableView didDeselectRowAtIndexPath:(NSIndexPat

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
NSInteger sectionCount = [[_fetchedResultsController sections] count];
NSInteger sectionCount = _fetchedResultsController.sections.count;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this still need to access the _fetchedResultsController or can it grab self.fetchedResultsController?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can probably make it work as a property

@@ -188,7 +188,7 @@ - (void)initPersistentStoreCoordinator
self.migrationFailureOptions == VOKMigrationFailureOptionWipeRecovery) {
VOK_CDLog(@"Full database delete and rebuild");
[[NSFileManager defaultManager] removeItemAtPath:storeURL.path error:nil];
if (![_persistentStoreCoordinator addPersistentStoreWithType:NSSQLiteStoreType
if (![_persistentStoreCoordinator addPersistentStoreWithType:storeType
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whoooops

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

although, how often to we have store types than than SQLite?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just about never, which is why nobody noticed this

- (NSFetchedResultsController *)fetchedResultsController
{
if (!_fetchedResultsController) {
[self initFetchedResultsController];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without this lazy-loader, is initFetchedResultsController being called somewhere else?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, the init method

@brockboland
Copy link
Contributor

Cool, LGTM

@chillpop
Copy link
Contributor Author

chillpop commented Nov 4, 2015

@designatednerd, what say you?

@designatednerd
Copy link
Contributor

goat-pull-old-tyme

designatednerd added a commit that referenced this pull request Nov 4, 2015
@designatednerd designatednerd merged commit 997baba into vokal:master Nov 4, 2015
@chillpop chillpop deleted the feature/syntax-formatting branch November 5, 2015 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants