Welcome, Guest
Username Password: Remember me

SCClassDefinition definitionWithEntityName
(1 viewing) (1) Guest
  • Page:
  • 1
  • 2

TOPIC: SCClassDefinition definitionWithEntityName

SCClassDefinition definitionWithEntityName 1 year, 7 months ago #1

I am having problems initializing SCClassDefinition for use with Core Data. It is acting like that initialization method hasn't been defined (see screenshot). Has anything changed in 1.6RC? That is the version that I am currently using.
Screen_shot_2010_10_10_at_10.png
  • icyplains
  • OFFLINE
  • Expert Boarder
  • Posts: 133
  • Karma: 5
Last Edit: 1 year, 7 months ago by icyplains.

Re: SCClassDefinition definitionWithEntityName 1 year, 7 months ago #2

Are you sure your project imports Core Data in the prefix header file (found under Other Sources->myProjectName_Prefix.pch)? Apple's templates usually import Core Data in this file, but if it's not there, please add the following line to the imports:

#import <CoreData/CoreData.h>


Hope this helps!
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2404
  • Karma: 72

Re: SCClassDefinition definitionWithEntityName 1 year, 7 months ago #3

I only had it in my view controller's .h file. Does SCTableView check to see if Core Data has been included in the .pch in order to be able to use those methods?

That worked btw, thanks
  • icyplains
  • OFFLINE
  • Expert Boarder
  • Posts: 133
  • Karma: 5

Re: SCClassDefinition definitionWithEntityName 1 year, 7 months ago #4

Also, it looks like SCTableView doesn't support images stored in CoreData's "Binary Data" type. Is this something that you plan to implement? In the mean time, I will work on a solution.
  • icyplains
  • OFFLINE
  • Expert Boarder
  • Posts: 133
  • Karma: 5

Re: SCClassDefinition definitionWithEntityName 1 year, 7 months ago #5

Yes, STV checks that Core Data is defined first before using Core Data classes such as NSManagedObject.

Regarding the binary data type: are you suggesting that our new SCImagePickerCell read/write from it?
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2404
  • Karma: 72

Re: SCClassDefinition definitionWithEntityName 1 year, 7 months ago #6

Yes.

Right now I'm implementing a controller that will allow the user to add a new entity into the tableView (backed by coredata) that will contain an image, a caption, and a date-added.
  • icyplains
  • OFFLINE
  • Expert Boarder
  • Posts: 133
  • Karma: 5
  • Page:
  • 1
  • 2
Time to create page: 0.93 seconds