Get reference to NSPersistentDocument from managed object
Get reference to NSPersistentDocument from managed object
- Subject: Get reference to NSPersistentDocument from managed object
- From: Jesse Grosjean <email@hidden>
- Date: Sun, 12 Jun 2005 08:57:26 -0400
Can anyone suggest a good way to allow managed objects to get a
reference to their NSPersistentDocument. I need to do this so that I
can implement object specifier methods for my managed objects for
applescript support.
Currently I'm doing this by creating a custom subclass of
NSManagedObjectContext with an instance variable that points to a
NSPersistentDocument. Then in my subclass of NSPersistentDocument I
create this custom managed object context and give it a reference to
the document...
It works, but there must be a cleaner way?
Jesse
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden