Welcome, Guest
Username Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: CoreData Example

CoreData Example 1 year, 8 months ago #1

Hi


I really like your work with SensibleTV !!

I'm working with your Core Data App ex. now and have 3 questions.

1) How to configure "move rows" in TaskEntity for name in table view.

2) I have problem with configuration of "multiple selection" for category :

categoryPropertyDef.attributes = [SCSelectionAttributes attributesWithItems:[NSArray arrayWithObjects:@"Home", @"Work", @"Other", nil] allowMultipleSelection:YES allowNoSelection:NO]; but when I quit appl. and open again I see only one selected item. The same is with another ex. you supplied with SensibleTv.

3) How to change in Core Data App ex : Badge Cell to red "hot" as it is on the web -sensiblecocoa.com/features.htm

Regards


p.s
I found a solutions to p. 3) myself i Documentation and used myclassDef.uiElementDelegate = self; and - (void)willDisplayCell:(SCTableViewCell *)cell
it works perfectly !

Still please reply to 1) and 2)

Regards
  • dabrow
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Karma: 0
Last Edit: 1 year, 8 months ago by dabrow.

Re: CoreData Example 1 year, 8 months ago #2

Hi Dabrow

1) In Core Data, your data is saved as unordered sets. The way Sensible TableView orders your data for display is by sorting them according to the "key" property of SCClassDefiniton. For this reason, re-ordering rows in Core Data applications is not applicable and is actually disabled in STV, as there is no way of saving the new order (this is true even in Apple's own Core Data templates).

2) What Sensible TableView version do you currently have?

3) Glad this worked out well for you
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2404
  • Karma: 72

Re: CoreData Example 1 year, 8 months ago #3

Hi

Thanks for reply.
p.1) I was afraid of that because I tried to do it myself for 1 year ago. Lately it was not needed for my new project, but now I begun to consider it.

p.2) I have v1.5.6

Regards
Peter
  • dabrow
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Karma: 0

Re: CoreData Example 1 year, 8 months ago #4

Thanks for v.15.9 but I still have problem with multiple selections in "Category" both with my and new Demo CoreData app(v1.5.9). Should I do more customizations in code ? or changing to YES :[NSArray arrayWithObjects:@"Home", @"Work", @"Other", nil] allowMultipleSelection:YES allowNoSelection:NO]; should do .

Regards
  • dabrow
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Karma: 0

Re: CoreData Example 1 year, 8 months ago #5

I get your problem now Peter, it because you're using Core Data. The current multiple selection requires that your attribute be of type NSMutableSet, so that the set would contain all the selected indexes. Since Core Data does not have a type called a mutable set, we're now working on storing the multiple selections in a string, so that you can have a multiple selection Core Data attribute of type String. We will send you this ASAP, how urgent is your project? Thanks!
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2404
  • Karma: 72

Re: CoreData Example 1 year, 8 months ago #6

Thanks a lot Tarek
I know I tried Core Data It is easy when all is easy or it "sucks" because you do not have full control, but it saves time.

I would like .. , well I should finish it next week !
But this is very important then I can e. wait if you need more time.
What I need is to just to make them "multi selectable" and I'm done with them. I can do other stuff first

Thanks I really appreciate your work. This SensibleTv saves lot of hours of hard work and one can experiment more.
So far I love this your coding.

Regards
Peter
  • dabrow
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Karma: 0
  • Page:
  • 1
  • 2
Time to create page: 0.98 seconds