Re: EOGenerator error... but running WO5.2.4 ?
Re: EOGenerator error... but running WO5.2.4 ?
- Subject: Re: EOGenerator error... but running WO5.2.4 ?
- From: David LeBer <email@hidden>
- Date: Thu, 12 May 2005 16:58:50 -0400
On May 6, 2005, at 12:20 AM, Mike Schrag wrote:
This seemed to fix eogenerator for me:
--- /Volumes/eogenerator-1.5.X/Source/FoundationAdditions.m
2002-11-26 23:31:49.000000000 -0500
+++ FoundationAdditions.m 2005-05-06 00:17:59.000000000 -0400
@@ -97,6 +97,10 @@
return [(NSString *)[obj1 valueForKey:@"name"] compare:[obj2
valueForKey:@"name"]];
}
+- (NSArray *)sortedNameArray {
+ return [self sortedArrayUsingFunction:sortByName
context:NULL];
+}
+
// does an @sortedNameArray KeyValue key
- (id)computeSortedNameArrayForKey:(NSString *)key
{
At least on Tiger, you'll also have to:
touch /System/Library/Frameworks/Foundation.framework/Headers/
NSKeyValueCodingPrivate.h (that didn't exist on mine)
Drop me an email if you'd like the binary.
This seems to work... mostly.
I have fetchSpec method generation in my templates that contains the
following:
<$if FetchSpec.bindings.count > 0$>
NSMutableDictionary bindings = new NSMutableDictionary();
<$foreach Binding FetchSpec.bindings do2$>
if (<$Binding.name$>Binding != null)
bindings.setObjectForKey(<$Binding.name$>Binding, "<
$Binding.name$>");<$endforeach do2$>
spec = spec.fetchSpecificationWithQualifierBindings(bindings);
<$endif$>
This chunk of code worked fine in Panther with WebObjects 5.2.3. In
Tiger with WebObjects 5.2.4 this would never evaluate the <$if
FetchSpec.bindings.count > 0$> to true.
Changing it to <$if FetchSpec.bindings.@count > 0$> resolves the issue.
;david
--
David LeBer
Codebase Software Systems
site: http://www.codebase.ca
blog: http://david.codebase.ca
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden