how to create a auto-incremented attribute in xcode managed object model

Posted by Mausimo on Stack Overflow See other posts from Stack Overflow or by Mausimo
Published on 2010-06-07T21:24:29Z Indexed on 2010/06/07 22:32 UTC
Read the original article Hit count: 191

Filed under:
|

Hey, what i want to do is to make a int that will be the ID of the entity and auto increment itself whenever a new entity is added (just like a SQL identity property). Is this possible? i tried using indexed (checked on attribute) however there is no description to what indexed even does.

EDIT:

I am adding annotations to a map, when you click the pin the annotationview with a chevron shows up. Now when you click this button i would like to load an associated picture. However the only way i know how to link the picture to this button is to give the picture a unique id, and then set the button.tag to this id and then load based on the button.tag.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about xcode