Slee
Slee

Reputation: 28248

pass CoreData ObjectId as a parameter in objective-c?

Can I pass ObjectId as a parameter in my iPad app?

I'd like to pass [MyObject objectID] as my parameter and look up the object based on this in Core Data.

Upvotes: 0

Views: 307

Answers (1)

Lily Ballard
Lily Ballard

Reputation: 185671

Yes, you can certainly do that, though the receiving object needs an NSManagedObjectContext to be able to look up the object again.

Upvotes: 1

Related Questions