small medium large xlarge

Back to: All Forums  Core Data
Me_perched_pragsmall
23 Jun 2010, 04:37
Lachlan Scott (16 posts)

I have a Core Data app that works to add or remove one of a Client's many Appointments with buttons bound in IB to my appointments ArrayController. The appointments content is derived from whichever Client is selected in a feed list. I wish to use a SegmentedControl, and as far as I could tell, this requires I programmatically add and remove the objects in appointments. I have successfully managed to add an Appointment using Marcus’ code on p54, but I am at a loss to remove a selected Appointment. I am using a custom table cell, which I suspect might be complicating matters.

In short, I wish to programmatically do the equivalent of an ArrayController’s remove: method on a selected object.

Can anyone help, please?

Avatarsmall_pragsmall
23 Jun 2010, 17:30
Marcus S. Zarra (284 posts)

I would highly recommend posting this question on Stack Overflow as you will get a lot more eyes on the problem.

Me_perched_pragsmall
25 Jun 2010, 10:20
Lachlan Scott (16 posts)

Hi Marcus. I have cross posted to Stack Overflow here: http://stackoverflow.com/questions/3117174/using-nssegmentedcontrol-with-coredata I’m concerned that you noticed my question and took the time to answer, but didn’t by the same token suggest a simple answer. Does that mean I’m doing something difficult or unusual here? Apple use SegmentedControl’s all the time with their own apps, hence I wanted to the do the same.

Avatarsmall_pragsmall
27 Jun 2010, 06:14
Marcus S. Zarra (284 posts)

Just means that I have not been doing desktop development lately and someone who has been working on the desktop more than I would have a better answer.

Me_perched_pragsmall
15 Jul 2010, 06:26
Lachlan Scott (16 posts)

This question was answered with help at StackOverflow: http://stackoverflow.com/questions/3117174/using-nssegmentedcontrol-with-coredata

You must be logged in to comment