Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > NSFormatter and CoreData

NSFormatter and CoreData
Thread Tools
Warren Pease
Mac Enthusiast
Join Date: Jan 2007
Status: Offline
Reply With Quote
Oct 2, 2007, 06:49 PM
I am working on a program where my data is handled via CoreData. I have been able to hook the individual attributes to a textfield, but for my purposes, it makes sense to display and edit the multiple attributes via a single textfield cell (think "date" "month" "year" instead handled as "date/month/year").

I have tried to make a NSFormatter subclass to handle this but haven't been able to get it to work properly. I have setup a similar formatter for a similar program that wasn't CoreData-based without a problem, so I'm wondering if there is something I am missing...

So basically, the behaviour works fine at first. Data is displayed properly, but when I am editing a cell in the textfield, all the instances in the textfield begin to reset to default values (even those not being edited) and then the program quickly crashes.

Any help/suggestions are greatly appreciated.
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Privacy Policy
All times are GMT -4. The time now is 02:45 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,