Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Show url field(WXXX) of mp3s

  • Loading branch information...
commit 1b27b80ca9859c135a1fd70838bdb2a2515344cb 1 parent 2a46ee8
@Bilalh authored
View
2  Classes/Main/MainController.m
@@ -723,7 +723,7 @@ - (IBAction)openInTerminal:(id)sender
[[[NSAppleScript alloc]
initWithSource: @"tell application \"Terminal\" to activate"]
executeAndReturnError:nil];
-
+
}
View
11,115 Classes/Main/MainMenu.xib
1,846 additions, 9,269 deletions not shown
View
13 Classes/Transformers/WXXXToString.h
@@ -0,0 +1,13 @@
+//
+// WXXXToString.h
+// Tagger
+//
+// Created by Bilal Syed Hussain on 31/10/2013.
+// Copyright 2013 All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+
+@interface WXXXToString : NSValueTransformer
+
+@end
View
28 Classes/Transformers/WXXXToString.m
@@ -0,0 +1,28 @@
+//
+// WXXXToString.m
+// Tagger
+//
+// Created by Bilal Syed Hussain on 31/10/2013.
+// Copyright 2013 All rights reserved.
+//
+
+#import "WXXXToString.h"
+#import "RegexKitLite.h"
+
+@implementation WXXXToString
+
++ (Class)transformedValueClass {
+ return [NSString class];
+}
+
++ (BOOL)allowsReverseTransformation {
+ return NO;
+}
+
+- (id)transformedValue:(id)value {
+
+ NSString *s = [value stringByReplacingOccurrencesOfRegex:@"^.*http" withString:@"http"];
+ return s;
+}
+
+@end
View
6 Tagger.xcodeproj/project.pbxproj
@@ -48,6 +48,7 @@
9239270515CF0F8400135F07 /* SenTestingKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9252929715C359C300C8CD9E /* SenTestingKit.framework */; };
9239573013F43EB100A80074 /* CCTColorLabelMenuItemView.m in Sources */ = {isa = PBXBuildFile; fileRef = 9239572F13F43EB100A80074 /* CCTColorLabelMenuItemView.m */; settings = {COMPILER_FLAGS = "-w"; }; };
923B846413F4B7A800524BFA /* BHFinderLabelColours.m in Sources */ = {isa = PBXBuildFile; fileRef = 923B846313F4B7A800524BFA /* BHFinderLabelColours.m */; };
+ 924C34C91821F1D5004C70B7 /* WXXXToString.m in Sources */ = {isa = PBXBuildFile; fileRef = 924C34C81821F1D5004C70B7 /* WXXXToString.m */; };
924ED36E15E1303D000C504F /* Vgmdb_10_disks.mm in Sources */ = {isa = PBXBuildFile; fileRef = 924ED36D15E1303D000C504F /* Vgmdb_10_disks.mm */; };
925292A415C359C300C8CD9E /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 925292A215C359C300C8CD9E /* InfoPlist.strings */; };
925292A715C359C300C8CD9E /* VgmdbTests.mm in Sources */ = {isa = PBXBuildFile; fileRef = 925292A615C359C300C8CD9E /* VgmdbTests.mm */; };
@@ -190,6 +191,8 @@
9239572F13F43EB100A80074 /* CCTColorLabelMenuItemView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CCTColorLabelMenuItemView.m; sourceTree = "<group>"; };
923B846213F4B7A800524BFA /* BHFinderLabelColours.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BHFinderLabelColours.h; sourceTree = "<group>"; };
923B846313F4B7A800524BFA /* BHFinderLabelColours.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BHFinderLabelColours.m; sourceTree = "<group>"; };
+ 924C34C71821F1D5004C70B7 /* WXXXToString.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WXXXToString.h; sourceTree = "<group>"; };
+ 924C34C81821F1D5004C70B7 /* WXXXToString.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = WXXXToString.m; sourceTree = "<group>"; };
924ED36D15E1303D000C504F /* Vgmdb_10_disks.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = Vgmdb_10_disks.mm; sourceTree = "<group>"; };
9252929515C359C300C8CD9E /* VgmdbTests.octest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = VgmdbTests.octest; sourceTree = BUILT_PRODUCTS_DIR; };
9252929715C359C300C8CD9E /* SenTestingKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SenTestingKit.framework; path = Library/Frameworks/SenTestingKit.framework; sourceTree = DEVELOPER_DIR; };
@@ -733,6 +736,8 @@
children = (
92E6EDAB13F313230045679E /* NumberToTimeTransformer.h */,
92E6EDAC13F313230045679E /* NumberToTimeTransformer.m */,
+ 924C34C71821F1D5004C70B7 /* WXXXToString.h */,
+ 924C34C81821F1D5004C70B7 /* WXXXToString.m */,
);
path = Transformers;
sourceTree = "<group>";
@@ -969,6 +974,7 @@
92C4466413E0BF830038F817 /* BWHyperlinkTitleButton.m in Sources */,
92C4466513E0BF830038F817 /* BWHyperlinkButtonCell.m in Sources */,
92A6808913EC7B130067DD5F /* MASPreferencesWindowController.m in Sources */,
+ 924C34C91821F1D5004C70B7 /* WXXXToString.m in Sources */,
929F152913F1E5F60021F9FD /* BHDraggableImageView.m in Sources */,
92E6EDB713F313230045679E /* NSAttributedString+Hyperlink.m in Sources */,
92E6EDB813F313230045679E /* NSImage+bitmapData.m in Sources */,
Please sign in to comment.
Something went wrong with that request. Please try again.