diff --git a/Changelog.rtf b/Changelog.rtf index e4046c8..1f48098 100644 --- a/Changelog.rtf +++ b/Changelog.rtf @@ -63,4 +63,5 @@ -Fixed a bug: "Network error" when having special characters in query\ -Fixed a bug: Returned false results when having a "&" in the query\ -Fixed a resource bug\ --Fixed special characters in url bug (final)} \ No newline at end of file +-Fixed special characters in url bug (final)\ +} \ No newline at end of file diff --git a/de.lproj/Localizable.strings b/de.lproj/Localizable.strings index 1bb1a96..560c767 100644 --- a/de.lproj/Localizable.strings +++ b/de.lproj/Localizable.strings @@ -75,4 +75,4 @@ "Growl.messages.lyricsSent.title" = "Songtext an iTunes gesendet"; -"Growl.messages.lyricsSent.detail" = "Songtext an \"%@\" gesendet."; \ No newline at end of file +"Growl.messages.lyricsSent.detail" = "Songtext an \"%@\" gesendet."; diff --git a/en.lproj/Localizable.strings b/en.lproj/Localizable.strings index e2fcd73..a34b8bb 100644 --- a/en.lproj/Localizable.strings +++ b/en.lproj/Localizable.strings @@ -76,4 +76,4 @@ "Growl.messages.lyricsSent.title" = "Lyrics sent to iTunes"; /* %@ is the name of the song */ -"Growl.messages.lyricsSent.detail" = "Lyrics sent to \"%@\"."; \ No newline at end of file +"Growl.messages.lyricsSent.detail" = "Lyrics sent to \"%@\"."; diff --git a/iLyrics/AppDelegate.h b/iLyrics/AppDelegate.h index d88cb2f..64982dd 100644 --- a/iLyrics/AppDelegate.h +++ b/iLyrics/AppDelegate.h @@ -27,5 +27,4 @@ - (IBAction)playPauseiTunes:(id)sender; - (IBAction)previousTrack:(id)sender; - (IBAction)nextTrack:(id)sender; - @end diff --git a/iLyrics/AppDelegate.m b/iLyrics/AppDelegate.m index d72d6dd..cff1582 100644 --- a/iLyrics/AppDelegate.m +++ b/iLyrics/AppDelegate.m @@ -106,4 +106,5 @@ - (IBAction)nextTrack:(id)sender { [iTunes nextTrack]; } + @end diff --git a/iLyrics/AutoLyrics.h b/iLyrics/AutoLyrics.h index 5fae972..2f5c5a9 100644 --- a/iLyrics/AutoLyrics.h +++ b/iLyrics/AutoLyrics.h @@ -24,5 +24,4 @@ -(void) saveToDefaults: (NSUserDefaults *)defaults; -(void) loadFromDefaults: (NSUserDefaults *)defaults; - @end diff --git a/iLyrics/AutoLyrics.m b/iLyrics/AutoLyrics.m index 7563afc..c17ce66 100644 --- a/iLyrics/AutoLyrics.m +++ b/iLyrics/AutoLyrics.m @@ -90,5 +90,4 @@ AutoLyrics *instace; enabled = [defaults boolForKey:@"Auto Lyrics Enabled"]; replaceOldLyrics = [defaults boolForKey:@"Auto Lyrics replaces old lyrics"]; } - @end diff --git a/iLyrics/Lyrics.h b/iLyrics/Lyrics.h index eb6f370..cfc26ca 100644 --- a/iLyrics/Lyrics.h +++ b/iLyrics/Lyrics.h @@ -9,9 +9,11 @@ #import @interface Lyrics : NSObject + @property NSString *name; @property NSString *artist; @property NSString *lyrics; + -(id)initWithName: (NSString*) name byArtist: (NSString*) artist withLyrics: (NSString*) lyrics; @end diff --git a/iLyrics/Lyrics.m b/iLyrics/Lyrics.m index 0435c89..9deb9a4 100644 --- a/iLyrics/Lyrics.m +++ b/iLyrics/Lyrics.m @@ -20,5 +20,4 @@ name = son; return self; } - @end diff --git a/iLyrics/Magistrix.h b/iLyrics/Magistrix.h index 3e87735..9cd441b 100644 --- a/iLyrics/Magistrix.h +++ b/iLyrics/Magistrix.h @@ -10,5 +10,4 @@ #import "LyricsHoster.h" @interface Magistrix : NSObject - @end diff --git a/iLyrics/Magistrix.m b/iLyrics/Magistrix.m index 547da6e..2b91c8b 100644 --- a/iLyrics/Magistrix.m +++ b/iLyrics/Magistrix.m @@ -216,4 +216,5 @@ typedef enum { NSString *lyrics = [self stringByRemovingHTMLTags:[page substringWithRange:NSMakeRange(lyricsStart, lyricsEnd-lyricsStart)]]; return lyrics; } + @end diff --git a/iLyrics/MainController.h b/iLyrics/MainController.h index a83f6e2..35a4a3d 100644 --- a/iLyrics/MainController.h +++ b/iLyrics/MainController.h @@ -45,5 +45,4 @@ - (IBAction)showiLyricsWindow:(id)sender; - (void)saveToDefalts: (NSUserDefaults *)defaults; - (void)loadFromDefaults: (NSUserDefaults *)defaults; - @end diff --git a/iLyrics/MainController.m b/iLyrics/MainController.m index 597ee55..6049ae1 100644 --- a/iLyrics/MainController.m +++ b/iLyrics/MainController.m @@ -46,27 +46,15 @@ #pragma mark Outline view Data Source and Delegate -(NSInteger)outlineView:(NSOutlineView *)outlineView numberOfChildrenOfItem:(id)item { - if (item == nil) { - return [loadedResults count]; - } - if ([item isKindOfClass:[NSArray class]]) { - return [item count]; - } - return 0; + return item == nil ? [loadedResults count] : 0; } -(id)outlineView:(NSOutlineView *)outlineView child:(NSInteger)index ofItem:(id)item { - if (item == nil) { - return [loadedResults objectAtIndex:index]; - } - if ([item isKindOfClass:[SearchResult class]]) { - return [item objectAtIndex:index]; - } - return nil; + return [loadedResults objectAtIndex:index]; } -(BOOL)outlineView:(NSOutlineView *)outlineView isItemExpandable:(id)item { - return [loadedResults containsObject:item]; + return NO; } -(id)outlineView:(NSOutlineView *)outlineView objectValueForTableColumn:(NSTableColumn *)tableColumn byItem:(id)item { @@ -345,4 +333,5 @@ -(void)loadFromDefaults:(NSUserDefaults *)defaults { [showPreviewCheckBox setState:[defaults boolForKey:@"Show preview"]?NSOnState:NSOffState]; } + @end diff --git a/iLyrics/PreferencesController.h b/iLyrics/PreferencesController.h index 7e149d7..3fafd5c 100644 --- a/iLyrics/PreferencesController.h +++ b/iLyrics/PreferencesController.h @@ -31,5 +31,4 @@ - (IBAction)toggleAutoLyrics:(id)sender; - (IBAction)changeAutoLyricsInterval:(id)sender; - (IBAction)toggleReplaceOldLyrics:(id)sender; - @end diff --git a/iLyrics/PreferencesController.m b/iLyrics/PreferencesController.m index f2e3801..497a79c 100644 --- a/iLyrics/PreferencesController.m +++ b/iLyrics/PreferencesController.m @@ -126,5 +126,4 @@ return [dateFormatter stringFromDate:version]; } } - @end diff --git a/iLyrics/PreferencesWindow.h b/iLyrics/PreferencesWindow.h index c08909b..418938d 100644 --- a/iLyrics/PreferencesWindow.h +++ b/iLyrics/PreferencesWindow.h @@ -9,5 +9,4 @@ #import @interface PreferencesWindow : NSWindow - @end diff --git a/iLyrics/PreferencesWindow.m b/iLyrics/PreferencesWindow.m index cd9aa7b..4c5d7b8 100644 --- a/iLyrics/PreferencesWindow.m +++ b/iLyrics/PreferencesWindow.m @@ -16,5 +16,4 @@ } return [super validateUserInterfaceItem:anItem]; } - @end diff --git a/iLyrics/SearchResult.h b/iLyrics/SearchResult.h index 266b85c..a5e15fa 100644 --- a/iLyrics/SearchResult.h +++ b/iLyrics/SearchResult.h @@ -16,4 +16,5 @@ -(id)initWithName: (NSString*) name fromArtist: (NSString*) artist preview: (NSString*) preview link: (id) link; + @end diff --git a/iLyrics/SearchResult.m b/iLyrics/SearchResult.m index f6eb15b..3e12acd 100644 --- a/iLyrics/SearchResult.m +++ b/iLyrics/SearchResult.m @@ -21,5 +21,4 @@ link = l; return self; } - @end diff --git a/iLyrics/de.lproj/MainMenu.xib b/iLyrics/de.lproj/MainMenu.xib index 75f8a52..b79d980 100644 --- a/iLyrics/de.lproj/MainMenu.xib +++ b/iLyrics/de.lproj/MainMenu.xib @@ -1180,7 +1180,6 @@ 293 {{141, 1}, {72, 18}} - _NS:9 YES @@ -1215,7 +1214,6 @@ 289 {{214, -1}, {140, 23}} - _NS:22 YES @@ -1239,7 +1237,6 @@ 292 {{0, -1}, {139, 23}} - _NS:22 YES @@ -1271,7 +1268,6 @@ 4352 {352, 415} - _NS:13 YES @@ -1280,7 +1276,6 @@ 256 {352, 17} - _NS:16 @@ -1390,7 +1385,6 @@ {{1, 17}, {352, 415}} - _NS:11 @@ -1407,7 +1401,6 @@ -2147483392 {{224, 17}, {15, 102}} - _NS:58 @@ -1420,7 +1413,6 @@ -2147483392 {{1, 417}, {350, 15}} - _NS:60 1 @@ -1436,7 +1428,6 @@ {{1, 0}, {352, 17}} - _NS:15 @@ -1446,7 +1437,6 @@ {{0, 29}, {354, 433}} - _NS:9 133682 @@ -1459,7 +1449,6 @@ {354, 462} - _NS:11 NSView @@ -1481,7 +1470,6 @@ 2322 {495, 14} - _NS:13 @@ -1545,7 +1533,6 @@ {{1, 1}, {495, 367}} - _NS:11 @@ -1559,7 +1546,9 @@ - file://localhost/Applications/Xcode.app/Contents/SharedFrameworks/DVTKit.framework/Resources/DVTIbeamCursor.tiff + + file://localhost/Applications/Xcode.app/Contents/SharedFrameworks/DVTKit.framework/Resources/DVTIbeamCursor.tiff + @@ -1576,7 +1565,6 @@ 256 {{481, 1}, {15, 361}} - _NS:84 _doScroller: @@ -1588,7 +1576,6 @@ 256 {{1, 353}, {489, 15}} - _NS:33 1 @@ -1600,7 +1587,6 @@ {497, 369} - _NS:9 133170 @@ -1617,7 +1603,6 @@ 265 {{330, 10}, {153, 32}} - _NS:9 YES @@ -1641,7 +1626,6 @@ 265 {{330, 37}, {153, 32}} - _NS:9 YES @@ -1665,7 +1649,6 @@ 266 {{82, 20}, {249, 17}} - _NS:9 {250, 750} @@ -1686,7 +1669,6 @@ 268 {{17, 20}, {63, 17}} - _NS:1505 YES @@ -1706,7 +1688,6 @@ 266 {{82, 47}, {249, 17}} - _NS:9 {250, 750} @@ -1727,7 +1708,6 @@ 268 {{17, 47}, {36, 17}} - _NS:1505 YES @@ -1745,7 +1725,6 @@ {{0, 377}, {497, 85}} - _NS:9 NSView @@ -1753,7 +1732,6 @@ {{364, 0}, {497, 462}} - _NS:13 NSView @@ -1761,7 +1739,6 @@ {861, 462} - _NS:9 YES @@ -1770,7 +1747,6 @@ {861, 462} - {{0, 0}, {1680, 1028}} @@ -6941,299 +6917,7 @@ 2802 - - - - AppDelegate - NSObject - - id - id - id - id - id - - - - nextTrack: - id - - - playPauseiTunes: - id - - - previousTrack: - id - - - quitiTunes: - id - - - runiTunes: - id - - - - MainController - PreferencesController - NSWindow - NSButton - NSWindow - - - - mainController - MainController - - - preferencesController - PreferencesController - - - preferencesWindow - NSWindow - - - quitWhenAllWindowClosedCheckBox - NSButton - - - window - NSWindow - - - - IBProjectSource - ./Classes/AppDelegate.h - - - - MainController - NSObject - - id - id - id - id - NSOutlineView - id - id - id - id - id - - - - downloadLyrics: - id - - - getCurrentSpotifySong: - id - - - getCurrentiTunesSong: - id - - - loadNextResults: - id - - - lyricsSelectionChanged: - NSOutlineView - - - resetLoadedResults: - id - - - sendLyricsToiTunes: - id - - - showLyricsInBrowser: - id - - - showiLyricsWindow: - id - - - startNewSearch: - id - - - - NSTextField - NSButton - NSMenuItem - NSButton - NSTextView - NSPopover - NSTextView - NSOutlineView - NSSearchField - NSButton - NSButton - NSTextField - NSWindow - - - - artistLabel - NSTextField - - - downloadLyricsButton - NSButton - - - iLyricsMenuItem - NSMenuItem - - - loadMoreResultsButton - NSButton - - - lyricsArea - NSTextView - - - previewPopover - NSPopover - - - previewTextArea - NSTextView - - - resultsOutline - NSOutlineView - - - searchField - NSSearchField - - - sendToiTunesButton - NSButton - - - showPreviewCheckBox - NSButton - - - songLabel - NSTextField - - - window - NSWindow - - - - IBProjectSource - ./Classes/MainController.h - - - - NSLayoutConstraint - NSObject - - IBProjectSource - ./Classes/NSLayoutConstraint.h - - - - PreferencesController - NSObject - - id - id - id - id - id - - - - changeAutoLyricsInterval: - id - - - showAutoLyricsPreferences: - id - - - showGeneralPreferences: - id - - - toggleAutoLyrics: - id - - - toggleReplaceOldLyrics: - id - - - - NSView - NSToolbarItem - NSView - NSTableView - PreferencesWindow - NSButton - NSButton - - - - autoLyricsView - NSView - - - generalButton - NSToolbarItem - - - generalView - NSView - - - hosterTable - NSTableView - - - preferencesWindow - PreferencesWindow - - - replaceOldCheckBox - NSButton - - - toggleAutoLyricsButton - NSButton - - - - IBProjectSource - ./Classes/PreferencesController.h - - - - PreferencesWindow - NSWindow - - IBProjectSource - ./Classes/PreferencesWindow.h - - - - + 0 IBCocoaFramework diff --git a/iLyrics/en.lproj/MainMenu.xib b/iLyrics/en.lproj/MainMenu.xib index 3b01d60..60717ab 100644 --- a/iLyrics/en.lproj/MainMenu.xib +++ b/iLyrics/en.lproj/MainMenu.xib @@ -919,9 +919,10 @@ Search - + 268 {{0, 14}, {96, 22}} + _NS:9 YES @@ -1268,7 +1269,7 @@ 4352 {300, 415} - + _NS:13 YES @@ -1437,7 +1438,7 @@ {{0, 29}, {302, 433}} - + _NS:9 133682 @@ -1546,7 +1547,9 @@ - file://localhost/Applications/Xcode.app/Contents/SharedFrameworks/DVTKit.framework/Resources/DVTIbeamCursor.tiff + + file://localhost/Applications/Xcode.app/Contents/SharedFrameworks/DVTKit.framework/Resources/DVTIbeamCursor.tiff + @@ -1563,7 +1566,6 @@ 256 {{513, 1}, {15, 361}} - _NS:84 _doScroller: @@ -2076,7 +2078,7 @@ PreferencesController - + 268 @@ -2111,7 +2113,7 @@ 256 {424, 146} - + _NS:13 YES @@ -2233,7 +2235,6 @@ -2147483392 {{1, 173}, {438, 15}} - _NS:60 1 @@ -2256,7 +2257,7 @@ {{20, 20}, {426, 164}} - + _NS:9 133682 @@ -2292,7 +2293,6 @@ {466, 251} - _NS:9 NSView diff --git a/iLyrics/iLyrics-Prefix.pch b/iLyrics/iLyrics-Prefix.pch index 8b4020a..7c64e5a 100644 --- a/iLyrics/iLyrics-Prefix.pch +++ b/iLyrics/iLyrics-Prefix.pch @@ -5,3 +5,4 @@ #ifdef __OBJC__ #import #endif +