i tried get entity ID like that:
NSLog(@"entity id: %@",[channel objectID]);
but in this case id is not number
output:
2011-09-11 20:40:39.932 n[3591:207] entity id: 0x591f6f0 <x-coredata://4FE0AAD6-289E-404D-B81A-0FC0917BE025/Channel/p3>
why it not returns 3?
A managed object ID is a form of URI that uniquely identifies a managed object as residing within a particular persistent store.
It breaks down as:
… because you can have many persistent stores with objects of the same entity stored in each, the ID for a managed object must include the store.
You save managedObjectIDs as attributes by converting them to their URI representation and setting the attribute to the resulting URL.