Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9143955
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T10:09:05+00:00 2026-06-17T10:09:05+00:00

I want to use Parse (parse.com) in my app. Parse uses PFObject models. I’d

  • 0

I want to use Parse (parse.com) in my app. Parse uses PFObject models. I’d like to use my own models throughout my code (so that it doesn’t depend on parse). If possible I’d like to design my app so that I can replace parse with another cloud service as seamlessly as possible if I wanted to.

Is this a good idea? What’s the best way to abstract the model storage so that there is no (or minimal) traces of Parse code in my app?

Perhaps use the adapter design pattern to map parse objects to my own objects? Should this be an independent class or part of the model logic?

If anyone has tried something like this I’d like to hear your thoughts. Should I just use parse models directly in my code? Or perhaps a singleton factory to generate my models based on parse objects?

Any tips/thoughts/comments ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T10:09:07+00:00Added an answer on June 17, 2026 at 10:09 am

    I’ve found relatively clean way to manage this.

    Basically I’ve created a protocol called NPDictionaryRepresenting which classes can conform to in order to specify how they should be converted into a dictionary or initialized from a dictionary.

    @protocol NPDictionaryRepresenting <NSObject>
    - (NSDictionary *)dictionaryRepresentation;
    + (id)objectWithDictionaryRepresentation:(NSDictionary *)dictionary;
    @end 
    

    Each of my models that I need stored in Parse will conform to this and implement their own custom behaviour. This protocol is abstracted through the use of dictionaries so it doesn’t depend on Parse in any way.

    Then I’ve implemented a NPNetworkAdapter base class to handle all network storage. I’ve also implemented an NPParseNetworkAdapter class which inherits from NPNetworkAdapter. This is the only class which knows anything about Parse. Its interface deals with objects that conform to NPDictionaryRepresenting. The parse network adapter is able to create PFObjects by extracting dictionary representations of my objects. Conversely it’s able to fetch PFObjects and give me back my own models by instantiating them using dictionaries.

    The drawback with this implementation is it doesn’t work very well with object relationships (but I’m working on it).

    If anyone has any comments on this approach I’d love to hear them.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use parse.com and the iOS Parse Framework in an iOS app. I want
I am using the Parse.com framework with my iOS app. I want to have
I generally access my Parse app by going to www.mysite.com . However, I want
We are building a location based messaging app which uses Parse.com as back-end (Parse.com
I've use Parse to give my iOS and Android App notifications. But I want
I want to use Gson to parse my JSON, I've added Gson library into
I want to use an html parser that does the following in a nice,
I would like to use Parsec's makeTokenParser to build my parser, but I want
I want use this 1 for using Bar code or QR code scanner. I
I am creating a node.js app with Express and socket.io. I want to use

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.