On Feb 9, 2006, at 4:35 PM, Owen McKerrow wrote:
<snip>
I typically batch fetch rather than batch fault:
NSArray tempAllExs =
EOUtilities.objectsWithFetchSpecificationAndBindings(ec,
"External", "allMembers", NSDictionary.EmptyDictionary);
EOModelGroup defaultGroup = EOModelGroup.defaultGroup();
EODatabaseContext databaseContext =
EODatabaseContext.registeredDatabaseContextForModel
(defaultGroup.modelNamed("ModelName"), ec);
databaseContext.batchFetchRelationship(defaultGroup.entityNamed
("External").relationshipNamed("activeName"), tempAllExs, ec);
selectableExtenals = (NSArray)tempAllExs.valueForKey("activeName");
Unfortunately this won't work as activeName() isn't a real
relationship, its a function. I may have to go back and add this
relationship.
I think Art meant this:
databaseContext.batchFetchRelationship(defaultGroup.entityNamed
("External").relationshipNamed("personNames"), tempAllExs, ec);
personNames not activeName there
--
Coming in 2006 - an introduction to web applications using WebObjects
and Xcode http://www.global-village.net/wointro
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems. http://www.global-village.net/products/practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]