apparentsoft / reactivecoredata Goto Github PK
View Code? Open in Web Editor NEWCore Data with ReactiveCocoa
License: MIT License
Core Data with ReactiveCocoa
License: MIT License
Non-prefixed methods (e.g.: + (RACSignal *)findAll) will conflict with other libraries (e.g. MagicalRecord)
So, all methods should be renamed to prefixed version.
old
+ (RACSignal *)findAll;
new
+ (RACSignal *)rac_findAll;
FYI:
"Namespacing - NSHipster" http://nshipster.com/namespacing/
Lots of Core Data applications will use NSFetchedResultsController
to manage their UITableView
s and UICollectionView
s.
It provides a good level of control through its delegate protocol, and lets the user update tables relatively easily with some boilerplate code supplied by the Apple documentation.
Where does RCD come in on this matter?
Hi!
First of all, I wanna say thanks for creating and sharing this cool stuff, I'm looking forward to using it in my projects. And I feel like there are a couple things that could be done to make it even better :)
Here are the points I wanna ask you about:
rcd_merged
signal can be replaced with a signal for NSManagedObjectContextObjectsDidChangeNotification
to serve the similar purpose.+ (NSManagedObjectContext *)context
and + (NSManagedObjectContext *)currentContext
in the NSManagedObjectContext (ReactiveCoreData)
category are a bit confusing... Perhaps we could just eliminate the former one?- (RACSignal *)findAll:
and - (RACSignal *)findOne:
in RACSignal (ReactiveCoreData)
category ignore the receiver completely and just return new signals... I guess they should be class methods instead?+ (instancetype)insert
and + (instancetype)insert:
from NSManagedObject (ReactiveCoreData)
to some other place or maybe remove them completely? They seem like they have nothing to do with ReactiveCocoa stuff :)Let me know what do you think about this. If you are okay with these points, I'm willing to contribute :)
It would be useful to be able to do the following:
[[[[MyEntity findAll] where:@"name" equals:@"joe"] where:@"cars.@count" equals:@(1)] fetch]
and have this generate a compound predicate for the fetch request. I know you can accomplish the same thing without this today, but I find this a bit more readable. I'll have a pull request shortly.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.