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

TOPIC: Still learning..

Still learning.. 1 year, 3 months ago #1

Tarek, I am using the iPad sample.

I have this code for categories:

categoryPropertyDef.attributes = [SCSelectionAttributes attributesWithItems:[NSArray arrayWithObjects:@"JobA", @"JobB", @"Other", nil].....


How do you suggest changing this so the user can make/edit their own lists, but still have access to them with a combo box dropdown menu..?

Many thanks

David

Re: Still learning.. 1 year, 3 months ago #2

Hi David,

To have the user make/edit their own lists, I would advice creating another table view based on an SCArrayOfStringsSection. Using an SCArrayOfStringsSection, the user will be automatically given the functionality to add/remove/rearrange strings to an array of strings (stored in the SCArrayOfStringsSection "items" property). Once the user is done with that, you can take this "items" array and pass it on to the categoryPropertyDef.attributes .

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

Re: Still learning.. 1 year, 3 months ago #3

Tarek- By "another table view", do you mean another ViewController, another entity, class and / or simply another section?

Thanks... and hope you are doing ok.
Last Edit: 1 year, 3 months ago by daviddelmonte.

Re: Still learning.. 1 year, 3 months ago #4

Hi, this is perhaps similar with what I'm trying to do.

I have a category relationships in CoreData and I want the user to select the category from a selection, but it would be nice if they could also add a category directly from there.

What I want to do is similar to the example in the Core Data app where the user can add task steps, but instead of having an array of objects I just want them to select a single category.

Re: Still learning.. 1 year, 3 months ago #5

Hi David,

I am doing really well, thank you very much for asking Things here are getting so much better now and I should be in New York soon.


By "another table view", do you mean another ViewController, another entity, class and / or simply another section?


Yes, what I meant is another table view inside a new view controller. Please tell me if you need any further help.
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2404
  • Karma: 72

Re: Still learning.. 1 year, 3 months ago #6

Hi Oscar,


I have a category relationships in CoreData and I want the user to select the category from a selection, but it would be nice if they could also add a category directly from there.


What you want is exactly equivalent to selecting a "Person" when creating a new task. If you go to the "People" tab and add a new person, it will appear in the person selection inside the task detail view. Please tell me if you need further help with this.
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2404
  • Karma: 72
  • Page:
  • 1
  • 2
Time to create page: 0.90 seconds