Using NSTokenField with Core Data
Using NSTokenField with Core Data
- Subject: Using NSTokenField with Core Data
- From: Monte Ohrt <email@hidden>
- Date: Wed, 13 Feb 2008 22:41:50 -0600
Hello everyone,
I've been learning Cocoa, and making my attempt at a core data
application. It has been a bumpy ride, as most tutorials and examples on
the net reflect XCode 2 and I'm using XCode 3. Some things cross over
rather nicely, and other things are quite confusing!
Anyways, on to the topic at hand. I used this tutorial as a guide for my
core data app (Scott Stevenson's blog tutorial):
http://www.cocoadevcentral.com/articles/000085.php
It worked perfectly, I was able to recreate this app in XCode 3 with
little fuss. Now comes the problem: in my app, I want to apply a list of
tags to each of my data records. I created a tag entity with a to-many
relationship. I then wired up an NSTokenField in the interface builder
in much the same manner I did the text fields, and I get an NSSet error
that I just doesn't seem to apply. I don't know if creating a separate
entity for the tokenized tags is the way to go, or create an NSSet
inside the record entity, or? (I thought a separate entity would be
better than a set, as I would eventually want to generate a selection
list from the existing tags.)
It would be super helpful to see an example of using an NSTokenField
with a core data app (or at least some implementation of tags?), saving
and loading the tokenized array along with a record. Does anyone have
such a thing, or can you point me to an existing one?
TIA
Monte
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden