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

added a collection view sample to the sample project #65

Merged
merged 25 commits into from
Jan 13, 2016

Conversation

seanwolter
Copy link
Contributor

Including bonus whitespace and nitpicks!
This could be helpful in fixing bugs like #64
If anyone's interested the datasources could definitely use some updating. I don't think they've been touched in a while.


- (NSArray *)sortDescriptors {
return @[
[NSSortDescriptor sortDescriptorWithKey:@"numberOfCats" ascending:NO],
Copy link
Contributor

Choose a reason for hiding this comment

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

VOK_CDSELECTOR?

@chillpop
Copy link
Contributor

LGTM, the change to VOK_CDSELECTOR is just a nitpick.

@chillpop
Copy link
Contributor

Do you want to bump the podspec or wait until more stuff gets added?

@seanwolter
Copy link
Contributor Author

I guess the assert/exception change is worth a 0.0.1 bump. I'll add that and change to 'VOK_CDSELECTOR'.

}
//FOR TESTING ONLY, NOT NECESSARY
[self.tableView reloadData];
}
Copy link
Contributor

Choose a reason for hiding this comment

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

This certainly predates your changes, but it feels to me like this method should be - (BOOL)reloadDataError:(NSError **)error and then maybe have - (void)reloadData as a convenience wrapper calling reloadDataError:.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

SMRT


@property (strong, readonly) NSFetchedResultsController *fetchedResultsController;
@property (nonatomic, strong, readonly) NSFetchedResultsController *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.

Question for anyone reading:
fetchedResultsController, managedObjectClass, and tableView are declared as readonly
I didn't think instance variables, setters, and getters would be auto-synthesized. And yet, they are!
In the m file _fetchedResultsController exists and appears to work correctly. Same with the other readonly properties.

Copy link
Contributor

Choose a reason for hiding this comment

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

  1. I don't see a question.
  2. Otherwise, how would you set a readonly property (that wasn't computed)?
  3. setter is synthesized too?

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 guess the question was "Why did it ever work?"
but I found "...if your property is readonly AND you implement your own getter method, then an instance variable is not synthesized." So this is working correctly. Nevermind!

@seanwolter
Copy link
Contributor Author

Ready for another review if anyone's interested.

I noticed 2.0.0 is not tagged as a release on GitHub. Could @designatednerd or @chillpop tag the current master HEAD as 2.0.0?

@seanwolter
Copy link
Contributor Author

Thanks @brockboland . I think someone also needs to pod trunk push 2.0.0. I'm not sure I can still do that. Once merged this PR should be 2.0.1

@brockboland
Copy link
Contributor

Yeah yeah, gimme a minute here jeez

@chillpop
Copy link
Contributor

chillpop commented Jan 5, 2016

hold off on that. I don't think we have enough changes to justify a "release" of the current HEAD. I'm fine with this PR being included in 2.0.0

@chillpop
Copy link
Contributor

chillpop commented Jan 5, 2016

(also, this is GTP)

@brockboland
Copy link
Contributor

I have bad news, @chillpop

if (self) {
NSString *cellIdentifier = NSStringFromClass([VOKCollectionViewCell class]);
[collectionView registerNib:[UINib nibWithNibName:cellIdentifier bundle:nil]
forCellWithReuseIdentifier:cellIdentifier];
Copy link
Contributor

Choose a reason for hiding this comment

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

Colons misaligned here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Was that the bad news you had for @chillpop ?

Copy link
Contributor

Choose a reason for hiding this comment

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

probably that 2.0.0 is already tagged

@brockboland
Copy link
Contributor

GTP here too. @vokal-isaac do you want to take another look before this is merged?

@brockboland
Copy link
Contributor

@vokal-isaac last chance, I'm merging this today if I don't hear any objection.

@vokal-isaac
Copy link
Contributor

(:goat:,)
namaste

@designatednerd
Copy link
Contributor

ommmmmmm

designatednerd added a commit that referenced this pull request Jan 13, 2016
added a collection view sample to the sample project
@designatednerd designatednerd merged commit 64a5ad4 into vokal:master Jan 13, 2016
@designatednerd
Copy link
Contributor

2.0.1 has been tagged and pushed to trunk.

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

5 participants