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 9220367
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T03:19:48+00:00 2026-06-18T03:19:48+00:00

I am developing an app for learning purposes. It’s a feed parser using NSXMLParser.

  • 0

I am developing an app for learning purposes. It’s a feed parser using NSXMLParser. Almost everything is accomplished except for the persistence. I have learned archiving and implemented it in my project but to move to a better solution and make my learning curve better, I have decided to move my app to Core Data.

Below is my parser code. FeedChannel is handling the channel attribute inside feedburner’s feed and also grabing the “items” that FeedItem file is handling.

FeedChannel.h

#import <Foundation/Foundation.h>

@interface FeedChannel : NSObject <NSXMLParserDelegate> {

    NSMutableArray *items;
    NSMutableString *currentString;
}

@property (nonatomic, assign) id parentParserDelegate;
@property (nonatomic, retain) NSString *title;
@property (nonatomic, retain) NSString *sDescription;
@property (nonatomic, readonly) NSMutableArray *items;

@end

FeedItem.h

#import <Foundation/Foundation.h>

@interface FeedItem : NSObject <NSXMLParserDelegate> {

    NSMutableString *currentString;

}

@property (nonatomic, assign) id parentParserDelegate;
@property (nonatomic, retain) NSString *title;
@property (nonatomic, retain) NSString *link;
@property (nonatomic, retain) NSString *creator;
@property (nonatomic, retain) NSString *pubDate;
@property (nonatomic, retain) UIImage *thumbnail;


@end

I have tried to learn CoreData but for new programmers it is a little complicated apparently.

Currently what I have done is that I have added the CoreData framework in my project, created a model file, added two entities named FeedChannel and FeedItem. What I don’t know how to do is the following:

1) Should I use the “Create Managed Subclass” in Xcode to overwrite the existing files or just mention the class name in the data model for each entry in the inspector panel or both approaches are the same?

2) If I use “Create Managed Subclass”, it also use dynamic instead of synthesise and I don’t know whether it affects my project or not.

3) How to handle thumbnail attribute as there is UIImage type in the data model of Core Data.

and the most important question:

4) How to handle NSMutableArray “items” in the FeedChannel file that is holding the items in the FeedItem? Do i need to somehow make one-to-many relationship?

Hopefully it will answer all the basic question related to Core Data that newbies face. Thanks in advance.

  • 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-18T03:19:49+00:00Added an answer on June 18, 2026 at 3:19 am
    1. The “create managed subclass” shortcut is just that. All it really does is subclass NSManagedObject (vs. NSObject) and create properties for all of your attributes and relationships. So no, you don’t have to use it. You can do the same manually if you prefer.

    2. Yes, properties of managed objects need to be @dynamic. This tells the compiler that the property will be resolved at runtime by core data.

    3. You want the transformable type, which handles any object–your properties will be of type id, generic object.

    4. Core data will replace your array. You’ll have a to-many relationship between the channel and the feed items. Make sure to create the inverse to-one relationship between the feed item and the channel, and mark the relationships as inverse.

    There are a few good tutorials and books out there on using Core Data. It seems a little daunting at first, but is actually not that bad.

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

Sidebar

Related Questions

Am learning AppEngine and have started developing new app and want to clarify something.
Recently I have been developing an app that needs AES encryption. I am using
Im developing an app with CodeIgniter, mainly for learning purposes. Im currently addressing the
I am developing a small app while learning Android. The app is basically making
I'm learning MVVM with the hope of developing an app that uses the phone's
im developing a app in Android. in this project im using a List of
I Am developing simple wp7 app for learning. I want to do the below
i am developing a test/learning app. i wonder how can i test if an
I learning Python (coming from a dotnet background) and developing an app which interacts
I'm developing a Python web app as a learning exercise, and I am looking

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.