From ed0ecd18b4b339ad6eaf9a6b7f2b458319f0bbe2 Mon Sep 17 00:00:00 2001 From: "ben%netscape.com" Date: Mon, 29 Apr 2002 13:15:25 +0000 Subject: [PATCH] Remove noisy NSLogs --- camino/CHRDFOutlineViewDataSource.mm | 22 ++++++++++++++----- .../extensions/RDFOutlineViewDataSource.mm | 22 ++++++++++++++----- chimera/CHRDFOutlineViewDataSource.mm | 22 ++++++++++++++----- .../extensions/RDFOutlineViewDataSource.mm | 22 ++++++++++++++----- 4 files changed, 68 insertions(+), 20 deletions(-) diff --git a/camino/CHRDFOutlineViewDataSource.mm b/camino/CHRDFOutlineViewDataSource.mm index 1040b84700d3..3a03e275e4f5 100644 --- a/camino/CHRDFOutlineViewDataSource.mm +++ b/camino/CHRDFOutlineViewDataSource.mm @@ -117,7 +117,6 @@ - (BOOL) outlineView: (NSOutlineView*) aOutlineView isItemExpandable: (id) aItem { - NSLog(@"outlineView:%@isItemExpandable:%@", aOutlineView, aItem); if (!mDataSource) return NO; @@ -143,7 +142,6 @@ - (id) outlineView: (NSOutlineView*) aOutlineView child: (int) aIndex ofItem: (id) aItem { - NSLog(@"outlineView:%@child:%dofItem:%@", aOutlineView, aIndex, aItem); if (!mDataSource) return nil; @@ -165,7 +163,6 @@ - (int) outlineView: (NSOutlineView*) aOutlineView numberOfChildrenOfItem: (id) aItem; { - NSLog(@"outlineView:%@numberOfChildrenOfItem:%@", aOutlineView, aItem); if (!mDataSource) return nil; @@ -206,25 +203,40 @@ - (id) outlineView: (NSOutlineView*) aOutlineView objectValueForTableColumn: (NSTableColumn*) aTableColumn byItem: (id) aItem { - NSLog(@"outlineView:%@objectValueForTableColumn:%@byItem:%@", aOutlineView, aTableColumn, aItem); + NSLog(@"*** aItem = %@", aItem); if (!mDataSource || !aItem) return nil; + + NSLog(@"1"); // The table column's identifier is the RDF Resource URI of the property being displayed in // that column, e.g. "http://home.netscape.com/NC-rdf#Name" NSString* columnPropertyURI = [aTableColumn identifier]; + NSLog(@"2"); + nsCOMPtr propertyResource; mRDFService->GetResource([columnPropertyURI cString], getter_AddRefs(propertyResource)); + NSLog(@"3"); + nsCOMPtr resource = [aItem resource]; + NSLog(@"4"); + nsCOMPtr valueNode; mDataSource->GetTarget(resource, propertyResource, PR_TRUE, getter_AddRefs(valueNode)); - if (!valueNode) + if (!valueNode) { + NSLog(@"ValueNode is null!"); return nil; + } nsCOMPtr valueLiteral(do_QueryInterface(valueNode)); + nsXPIDLString str3; + valueLiteral->GetValue(getter_Copies(str3)); + nsCAutoString str2; str2.AssignWithConversion(str3); + NSLog(@"Value = %@", [NSString stringWithCString: str2.get()]); + if (!valueLiteral) return nil; diff --git a/camino/src/extensions/RDFOutlineViewDataSource.mm b/camino/src/extensions/RDFOutlineViewDataSource.mm index 1040b84700d3..3a03e275e4f5 100644 --- a/camino/src/extensions/RDFOutlineViewDataSource.mm +++ b/camino/src/extensions/RDFOutlineViewDataSource.mm @@ -117,7 +117,6 @@ - (BOOL) outlineView: (NSOutlineView*) aOutlineView isItemExpandable: (id) aItem { - NSLog(@"outlineView:%@isItemExpandable:%@", aOutlineView, aItem); if (!mDataSource) return NO; @@ -143,7 +142,6 @@ - (id) outlineView: (NSOutlineView*) aOutlineView child: (int) aIndex ofItem: (id) aItem { - NSLog(@"outlineView:%@child:%dofItem:%@", aOutlineView, aIndex, aItem); if (!mDataSource) return nil; @@ -165,7 +163,6 @@ - (int) outlineView: (NSOutlineView*) aOutlineView numberOfChildrenOfItem: (id) aItem; { - NSLog(@"outlineView:%@numberOfChildrenOfItem:%@", aOutlineView, aItem); if (!mDataSource) return nil; @@ -206,25 +203,40 @@ - (id) outlineView: (NSOutlineView*) aOutlineView objectValueForTableColumn: (NSTableColumn*) aTableColumn byItem: (id) aItem { - NSLog(@"outlineView:%@objectValueForTableColumn:%@byItem:%@", aOutlineView, aTableColumn, aItem); + NSLog(@"*** aItem = %@", aItem); if (!mDataSource || !aItem) return nil; + + NSLog(@"1"); // The table column's identifier is the RDF Resource URI of the property being displayed in // that column, e.g. "http://home.netscape.com/NC-rdf#Name" NSString* columnPropertyURI = [aTableColumn identifier]; + NSLog(@"2"); + nsCOMPtr propertyResource; mRDFService->GetResource([columnPropertyURI cString], getter_AddRefs(propertyResource)); + NSLog(@"3"); + nsCOMPtr resource = [aItem resource]; + NSLog(@"4"); + nsCOMPtr valueNode; mDataSource->GetTarget(resource, propertyResource, PR_TRUE, getter_AddRefs(valueNode)); - if (!valueNode) + if (!valueNode) { + NSLog(@"ValueNode is null!"); return nil; + } nsCOMPtr valueLiteral(do_QueryInterface(valueNode)); + nsXPIDLString str3; + valueLiteral->GetValue(getter_Copies(str3)); + nsCAutoString str2; str2.AssignWithConversion(str3); + NSLog(@"Value = %@", [NSString stringWithCString: str2.get()]); + if (!valueLiteral) return nil; diff --git a/chimera/CHRDFOutlineViewDataSource.mm b/chimera/CHRDFOutlineViewDataSource.mm index 1040b84700d3..3a03e275e4f5 100644 --- a/chimera/CHRDFOutlineViewDataSource.mm +++ b/chimera/CHRDFOutlineViewDataSource.mm @@ -117,7 +117,6 @@ - (BOOL) outlineView: (NSOutlineView*) aOutlineView isItemExpandable: (id) aItem { - NSLog(@"outlineView:%@isItemExpandable:%@", aOutlineView, aItem); if (!mDataSource) return NO; @@ -143,7 +142,6 @@ - (id) outlineView: (NSOutlineView*) aOutlineView child: (int) aIndex ofItem: (id) aItem { - NSLog(@"outlineView:%@child:%dofItem:%@", aOutlineView, aIndex, aItem); if (!mDataSource) return nil; @@ -165,7 +163,6 @@ - (int) outlineView: (NSOutlineView*) aOutlineView numberOfChildrenOfItem: (id) aItem; { - NSLog(@"outlineView:%@numberOfChildrenOfItem:%@", aOutlineView, aItem); if (!mDataSource) return nil; @@ -206,25 +203,40 @@ - (id) outlineView: (NSOutlineView*) aOutlineView objectValueForTableColumn: (NSTableColumn*) aTableColumn byItem: (id) aItem { - NSLog(@"outlineView:%@objectValueForTableColumn:%@byItem:%@", aOutlineView, aTableColumn, aItem); + NSLog(@"*** aItem = %@", aItem); if (!mDataSource || !aItem) return nil; + + NSLog(@"1"); // The table column's identifier is the RDF Resource URI of the property being displayed in // that column, e.g. "http://home.netscape.com/NC-rdf#Name" NSString* columnPropertyURI = [aTableColumn identifier]; + NSLog(@"2"); + nsCOMPtr propertyResource; mRDFService->GetResource([columnPropertyURI cString], getter_AddRefs(propertyResource)); + NSLog(@"3"); + nsCOMPtr resource = [aItem resource]; + NSLog(@"4"); + nsCOMPtr valueNode; mDataSource->GetTarget(resource, propertyResource, PR_TRUE, getter_AddRefs(valueNode)); - if (!valueNode) + if (!valueNode) { + NSLog(@"ValueNode is null!"); return nil; + } nsCOMPtr valueLiteral(do_QueryInterface(valueNode)); + nsXPIDLString str3; + valueLiteral->GetValue(getter_Copies(str3)); + nsCAutoString str2; str2.AssignWithConversion(str3); + NSLog(@"Value = %@", [NSString stringWithCString: str2.get()]); + if (!valueLiteral) return nil; diff --git a/chimera/src/extensions/RDFOutlineViewDataSource.mm b/chimera/src/extensions/RDFOutlineViewDataSource.mm index 1040b84700d3..3a03e275e4f5 100644 --- a/chimera/src/extensions/RDFOutlineViewDataSource.mm +++ b/chimera/src/extensions/RDFOutlineViewDataSource.mm @@ -117,7 +117,6 @@ - (BOOL) outlineView: (NSOutlineView*) aOutlineView isItemExpandable: (id) aItem { - NSLog(@"outlineView:%@isItemExpandable:%@", aOutlineView, aItem); if (!mDataSource) return NO; @@ -143,7 +142,6 @@ - (id) outlineView: (NSOutlineView*) aOutlineView child: (int) aIndex ofItem: (id) aItem { - NSLog(@"outlineView:%@child:%dofItem:%@", aOutlineView, aIndex, aItem); if (!mDataSource) return nil; @@ -165,7 +163,6 @@ - (int) outlineView: (NSOutlineView*) aOutlineView numberOfChildrenOfItem: (id) aItem; { - NSLog(@"outlineView:%@numberOfChildrenOfItem:%@", aOutlineView, aItem); if (!mDataSource) return nil; @@ -206,25 +203,40 @@ - (id) outlineView: (NSOutlineView*) aOutlineView objectValueForTableColumn: (NSTableColumn*) aTableColumn byItem: (id) aItem { - NSLog(@"outlineView:%@objectValueForTableColumn:%@byItem:%@", aOutlineView, aTableColumn, aItem); + NSLog(@"*** aItem = %@", aItem); if (!mDataSource || !aItem) return nil; + + NSLog(@"1"); // The table column's identifier is the RDF Resource URI of the property being displayed in // that column, e.g. "http://home.netscape.com/NC-rdf#Name" NSString* columnPropertyURI = [aTableColumn identifier]; + NSLog(@"2"); + nsCOMPtr propertyResource; mRDFService->GetResource([columnPropertyURI cString], getter_AddRefs(propertyResource)); + NSLog(@"3"); + nsCOMPtr resource = [aItem resource]; + NSLog(@"4"); + nsCOMPtr valueNode; mDataSource->GetTarget(resource, propertyResource, PR_TRUE, getter_AddRefs(valueNode)); - if (!valueNode) + if (!valueNode) { + NSLog(@"ValueNode is null!"); return nil; + } nsCOMPtr valueLiteral(do_QueryInterface(valueNode)); + nsXPIDLString str3; + valueLiteral->GetValue(getter_Copies(str3)); + nsCAutoString str2; str2.AssignWithConversion(str3); + NSLog(@"Value = %@", [NSString stringWithCString: str2.get()]); + if (!valueLiteral) return nil;