Mapping multiple resources from one ObjectManager

26 views
Skip to first unread message

Yuriy Tymchuk

unread,
Oct 24, 2011, 5:03:46 AM10/24/11
to res...@googlegroups.com
Hi, I'm writing a client for a semi-REST web service (for now it only supports GET requests).

My problem is next. I have one base URL and two types of resources each one on the different resource path.

By this time I have two classes that represent that resources structures, I have two instances of RKObjectMapping for mapping each resource type, and I have two instances of RKObjectManager each one with different mapping. In app I load resources calling loadObjectsAtResourcePath: on each instance of RKObjectManager.

Can someone suggest how can I improve my code, because I feel that I should use only one instance of RKObjectManager as I work with only one web service.

I will be very thankful for any advice, because I've searched a lot and haven't found any solution.

LOU Yu Hong

unread,
Apr 19, 2012, 4:40:52 AM4/19/12
to res...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages