Skip to content

Commit

Permalink
Remove the 'set comment...' action code
Browse files Browse the repository at this point in the history
  • Loading branch information
pjrobertson committed Jul 6, 2012
1 parent c15500c commit 1f76720
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions QSHFSAttributeActions.m
Expand Up @@ -92,10 +92,7 @@ - (NSArray *)labelObjectsArray{
- (NSArray *)validIndirectObjectsForAction:(NSString *)action directObject:(QSObject *)dObject{
if ([action isEqualToString:kHFSSetLabelAction]){
return [self labelObjectsArray];
}else if ([action isEqualToString:@"QSSetFileCommentAction"]){
NSString *comment=[[NSWorkspace sharedWorkspace]commentForFile:[dObject singleFilePath]];
return [NSArray arrayWithObject:[QSObject textProxyObjectWithDefaultValue:comment?comment:@""]];
}
}
return nil;
}

Expand Down Expand Up @@ -257,16 +254,6 @@ - (QSObject *)setLabelForFile:(QSObject *)dObject to:(QSObject *)iObject{
}


- (QSObject *)setCommentForFile:(QSObject *)dObject to:(QSObject *)iObject{
NSEnumerator *pathEnumerator=[dObject enumeratorForType:QSFilePathType];
NSString *newComment=[iObject stringValue];
NSString *path;
while (path=[pathEnumerator nextObject]){
[[NSWorkspace sharedWorkspace] setComment:newComment forFile:path];
}
return nil;
}

- (QSObject *)setIconForFile:(QSObject *)dObject to:(QSObject *)iObject{
NSWorkspace *w=[NSWorkspace sharedWorkspace];
NSImage *icon;
Expand Down

0 comments on commit 1f76720

Please sign in to comment.