Permalink
Browse files

Big closet cleaning removed all warnings and old dependencies

  • Loading branch information...
jbtule
jbtule committed Aug 17, 2008
1 parent 8dfe615 commit 25910300e0d36537d94aebd1bd730bee6855c76c
Showing with 307 additions and 15,397 deletions.
  1. +41 −58 AppCast/NicePlayerPreRelease.xml
  2. +6 −6 Classes/AppleRemote/HIDRemoteControlDevice.m
  3. +1 −1 Classes/AppleRemote/RemoteControl.m
  4. +1 −0 Classes/NPApplication.h
  5. +12 −4 Classes/NPApplication.m
  6. +0 −1 Classes/NiceController.h
  7. +3 −1 Classes/NiceController.m
  8. +4 −1 Classes/NiceDocument.h
  9. +17 −5 Classes/NiceDocument.m
  10. +0 −1 Classes/NiceWindow/NiceWindow.m
  11. +0 −1 Classes/NiceWindow/NiceWindowController.h
  12. +5 −3 Classes/Overlay Widgets/BlackWindow.m
  13. +0 −1 Classes/Overlay Widgets/OverlayControllerWindow.h
  14. +3 −2 Classes/Preferences/Preferences.m
  15. +2 −0 Classes/Preferences/PreferencesController.h
  16. +9 −9 Classes/Preferences/PreferencesController.m
  17. +11 −11 Classes/Scripting/AttachedScriptCode/TCallScript.m
  18. +1 −0 Classes/Scripting/NPAddCommand.m
  19. +1 −0 Classes/Scripting/NPApplicationScripting.m
  20. +1 −0 Classes/Scripting/NiceDocumentScripting.m
  21. +14 −6 Classes/Viewer Interface/NPMovieView.m
  22. +1 −1 Classes/Viewer Interface/NPPluginReader.m
  23. +1 −1 Classes/Viewer Interface/Pluggable Players/RCMovieView.m
  24. +4 −10 English.lproj/Preferences.nib/classes.nib
  25. +6 −4 English.lproj/Preferences.nib/info.nib
  26. BIN English.lproj/Preferences.nib/keyedobjects.nib
  27. +1 −1 Glue/SEGlue/SEReferenceGlue.h
  28. +4 −4 Glue/SEGlue/SEReferenceGlue.m
  29. +1 −1 Info.plist
  30. +12 −6 Libraries/AppScript/src/Appscript/Appscript.xcodeproj/project.pbxproj
  31. +32 −3 Libraries/UniversalCharsetDetector/UniversalCharsetDetector.xcodeproj/jay.pbxuser
  32. +10 −8 Libraries/UniversalCharsetDetector/UniversalCharsetDetector.xcodeproj/project.pbxproj
  33. +10 −5 Libraries/cocoascriptmenu/CocoaScriptMenu.xcodeproj/project.pbxproj
  34. +2 −2 Libraries/cocoascriptmenu/src/CSMCommandCreator.m
  35. +0 −591 Libraries/hodgepodge/HodgePodge.xcodeproj/project.pbxproj
  36. +0 −1,388 Libraries/hodgepodge/HodgePodge.xcodeproj/tuley.mode1
  37. +0 −201 Libraries/hodgepodge/HodgePodge.xcodeproj/tuley.pbxuser
  38. +0 −7 Libraries/hodgepodge/HodgePodge_Prefix.pch
  39. +0 −20 Libraries/hodgepodge/lib/encryptoc/EncryptOC Test-Info.plist
  40. +0 −52 Libraries/hodgepodge/lib/encryptoc/EncryptOC.h
  41. +0 −500 Libraries/hodgepodge/lib/encryptoc/EncryptOC.xcodeproj/project.pbxproj
  42. +0 −1,378 Libraries/hodgepodge/lib/encryptoc/EncryptOC.xcodeproj/tuley.mode1
  43. +0 −184 Libraries/hodgepodge/lib/encryptoc/EncryptOC.xcodeproj/tuley.pbxuser
  44. +0 −7 Libraries/hodgepodge/lib/encryptoc/EncryptOC_Prefix.pch
  45. BIN Libraries/hodgepodge/lib/encryptoc/English.lproj/InfoPlist.strings
  46. +0 −26 Libraries/hodgepodge/lib/encryptoc/Info.plist
  47. +0 −470 Libraries/hodgepodge/lib/encryptoc/License.txt
  48. +0 −67 Libraries/hodgepodge/lib/encryptoc/src/JTCryptKey.h
  49. +0 −310 Libraries/hodgepodge/lib/encryptoc/src/JTCryptKey.mm
  50. +0 −55 Libraries/hodgepodge/lib/encryptoc/src/JTPrivateCryptKey.h
  51. +0 −164 Libraries/hodgepodge/lib/encryptoc/src/JTPrivateCryptKey.mm
  52. +0 −56 Libraries/hodgepodge/lib/encryptoc/src/JTPublicCryptKey.h
  53. +0 −166 Libraries/hodgepodge/lib/encryptoc/src/JTPublicCryptKey.mm
  54. +0 −54 Libraries/hodgepodge/lib/encryptoc/src/JTSymmetricCryptKey.h
  55. +0 −149 Libraries/hodgepodge/lib/encryptoc/src/JTSymmetricCryptKey.mm
  56. +0 −340 Libraries/hodgepodge/lib/encryptoc/src/libcdsacrypt/libCdsaCrypt.h
  57. +0 −1,070 Libraries/hodgepodge/lib/encryptoc/src/libcdsacrypt/libCdsaCrypt.mm
  58. +0 −58 Libraries/hodgepodge/lib/encryptoc/test/Test-JTCryptKey.h
  59. +0 −97 Libraries/hodgepodge/lib/encryptoc/test/Test-JTCryptKey.m
  60. +0 −16 Libraries/hodgepodge/lib/encryptoc/version.plist
  61. +0 −24 Libraries/hodgepodge/lib/stenum/Info copy.plist
  62. +0 −24 Libraries/hodgepodge/lib/stenum/Info.plist
  63. +0 −470 Libraries/hodgepodge/lib/stenum/License.txt
  64. +0 −54 Libraries/hodgepodge/lib/stenum/Readme.txt
  65. +0 −5 Libraries/hodgepodge/lib/stenum/STEnum.hdoc
  66. +0 −1,328 Libraries/hodgepodge/lib/stenum/STEnum.xcode/project.pbxproj
  67. +0 −443 Libraries/hodgepodge/lib/stenum/STEnum10.4.xcodeproj/project.pbxproj
  68. +0 −45 Libraries/hodgepodge/lib/stenum/STEnum_Prefix.pch
  69. BIN Libraries/hodgepodge/lib/stenum/resources/English.lproj/InfoPlist.strings
  70. +0 −137 Libraries/hodgepodge/lib/stenum/src/Defines.h
  71. +0 −144 Libraries/hodgepodge/lib/stenum/src/NSArray-STEnumAdditions.h
  72. +0 −119 Libraries/hodgepodge/lib/stenum/src/NSArray-STEnumAdditions.m
  73. +0 −78 Libraries/hodgepodge/lib/stenum/src/NSDictionary-STEnumAdditions.h
  74. +0 −99 Libraries/hodgepodge/lib/stenum/src/NSDictionary-STEnumAdditions.m
  75. +0 −53 Libraries/hodgepodge/lib/stenum/src/NSSet-STEnumAdditions.h
  76. +0 −84 Libraries/hodgepodge/lib/stenum/src/NSSet-STEnumAdditions.m
  77. +0 −50 Libraries/hodgepodge/lib/stenum/src/STEnum.h
  78. +0 −145 Libraries/hodgepodge/lib/stenum/src/STSharedEnum.h
  79. +0 −129 Libraries/hodgepodge/lib/stenum/src/STSharedEnum.m
  80. +0 −52 Libraries/hodgepodge/lib/stenum/test/Test-Functions.h
  81. +0 −64 Libraries/hodgepodge/lib/stenum/test/Test-Functions.m
  82. +0 −59 Libraries/hodgepodge/lib/stenum/test/Test-NSArray-STEnumAdditions.h
  83. +0 −103 Libraries/hodgepodge/lib/stenum/test/Test-NSArray-STEnumAdditions.m
  84. +0 −55 Libraries/hodgepodge/lib/stenum/test/Test-NSDictionary-STEnumAdditions.h
  85. +0 −101 Libraries/hodgepodge/lib/stenum/test/Test-NSDictionary-STEnumAdditions.m
  86. +0 −54 Libraries/hodgepodge/lib/stenum/test/Test-NSSet-STEnumAdditions.h
  87. +0 −113 Libraries/hodgepodge/lib/stenum/test/Test-NSSet-STEnumAdditions.m
  88. BIN Libraries/hodgepodge/resources/ActionsPreferenceIcon.png
  89. BIN Libraries/hodgepodge/resources/English.lproj/InfoPlist.strings
  90. +0 −6 Libraries/hodgepodge/resources/English.lproj/Localizable.strings
  91. +0 −19 Libraries/hodgepodge/resources/English.lproj/UpdateAlertPanel.nib/classes.nib
  92. +0 −10 Libraries/hodgepodge/resources/English.lproj/UpdateAlertPanel.nib/data.dependency
  93. +0 −16 Libraries/hodgepodge/resources/English.lproj/UpdateAlertPanel.nib/info.nib
  94. BIN Libraries/hodgepodge/resources/English.lproj/UpdateAlertPanel.nib/keyedobjects.nib
  95. +0 −19 Libraries/hodgepodge/resources/English.lproj/UpdateAlertPanel~.nib/classes.nib
  96. +0 −10 Libraries/hodgepodge/resources/English.lproj/UpdateAlertPanel~.nib/data.dependency
  97. +0 −16 Libraries/hodgepodge/resources/English.lproj/UpdateAlertPanel~.nib/info.nib
  98. BIN Libraries/hodgepodge/resources/English.lproj/UpdateAlertPanel~.nib/keyedobjects.nib
  99. BIN Libraries/hodgepodge/resources/GeneralPreferenceIcon.png
  100. +0 −371 Libraries/hodgepodge/resources/Image Mappings.plist
  101. +0 −26 Libraries/hodgepodge/resources/Info.plist
  102. +0 −18 Libraries/hodgepodge/src/Categories/NSApplication-JTAdditions.h
  103. +0 −38 Libraries/hodgepodge/src/Categories/NSApplication-JTAdditions.m
  104. +0 −15 Libraries/hodgepodge/src/Categories/NSData-JTAdditions.h
  105. +0 −15 Libraries/hodgepodge/src/Categories/NSData-JTAdditions.m
  106. +0 −16 Libraries/hodgepodge/src/Categories/NSFileManager-JTAdditions.h
  107. +0 −15 Libraries/hodgepodge/src/Categories/NSFileManager-JTAdditions.m
  108. +0 −33 Libraries/hodgepodge/src/Categories/NSImage-JTAdditions.h
  109. +0 −134 Libraries/hodgepodge/src/Categories/NSImage-JTAdditions.m
  110. +0 −15 Libraries/hodgepodge/src/Categories/NSImage-JTAdditionsPrivate.h
  111. +0 −28 Libraries/hodgepodge/src/Categories/NSImage-JTAdditionsPrivate.m
  112. +0 −33 Libraries/hodgepodge/src/Categories/NSString-JTAdditions.h
  113. +0 −158 Libraries/hodgepodge/src/Categories/NSString-JTAdditions.m
  114. +0 −16 Libraries/hodgepodge/src/Categories/NSToolbar-JTAdditions.h
  115. +0 −27 Libraries/hodgepodge/src/Categories/NSToolbar-JTAdditions.m
  116. +0 −18 Libraries/hodgepodge/src/IndyAppKit.h
  117. +0 −13 Libraries/hodgepodge/src/IndyFoundation.h
  118. +0 −11 Libraries/hodgepodge/src/IndyKit.h
  119. +0 −22 Libraries/hodgepodge/src/JTPreferenceWindow-Private.h
  120. +0 −107 Libraries/hodgepodge/src/JTPreferenceWindow-Private.m
  121. +0 −57 Libraries/hodgepodge/src/JTPreferenceWindow.h
  122. +0 −393 Libraries/hodgepodge/src/JTPreferenceWindow.m
  123. +0 −19 Libraries/hodgepodge/src/JTToolbarTabbedController-Private.h
  124. +0 −109 Libraries/hodgepodge/src/JTToolbarTabbedController-Private.m
  125. +0 −42 Libraries/hodgepodge/src/JTToolbarTabbedController.h
  126. +0 −294 Libraries/hodgepodge/src/JTToolbarTabbedController.m
  127. +0 −16 Libraries/hodgepodge/src/JTToolbarTabbedWindow.h
  128. +0 −23 Libraries/hodgepodge/src/JTToolbarTabbedWindow.m
  129. +0 −17 Libraries/hodgepodge/src/JTURLButton.h
  130. +0 −73 Libraries/hodgepodge/src/JTURLButton.m
  131. +0 −18 Libraries/hodgepodge/src/JTURLButtonCell.h
  132. +0 −146 Libraries/hodgepodge/src/JTURLButtonCell.m
  133. +0 −24 Libraries/hodgepodge/src/JTUpdateAlertPanelController.h
  134. +0 −46 Libraries/hodgepodge/src/JTUpdateAlertPanelController.m
  135. +0 −19 Libraries/hodgepodge/src/JTiTunesLibrary-Private.h
  136. +0 −144 Libraries/hodgepodge/src/JTiTunesLibrary-Private.m
  137. +0 −87 Libraries/hodgepodge/src/JTiTunesLibrary.h
  138. +0 −428 Libraries/hodgepodge/src/JTiTunesLibrary.m
  139. +0 −15 Libraries/hodgepodge/test/Test-Functions.h
  140. +0 −27 Libraries/hodgepodge/test/Test-Functions.m
  141. +0 −20 Libraries/hodgepodge/test/Test-JTCryptKey.h
  142. +0 −60 Libraries/hodgepodge/test/Test-JTCryptKey.m
  143. +0 −26 Libraries/hodgepodge/test/Test-NSArray-JTAdditions.h
  144. +0 −57 Libraries/hodgepodge/test/Test-NSArray-JTAdditions.m
  145. +0 −18 Libraries/hodgepodge/test/Test-NSDictionary-JTAdditions.h
  146. +0 −64 Libraries/hodgepodge/test/Test-NSDictionary-JTAdditions.m
  147. +0 −16 Libraries/hodgepodge/test/Test-NSFilemanger-JTAdditions.h
  148. +0 −18 Libraries/hodgepodge/test/Test-NSFilemanger-JTAdditions.m
  149. +0 −17 Libraries/hodgepodge/test/Test-NSSet-JTAdditions.h
  150. +0 −64 Libraries/hodgepodge/test/Test-NSSet-JTAdditions.m
  151. +0 −17 Libraries/hodgepodge/test/Test-NSString-JTAdditions.h
  152. +0 −27 Libraries/hodgepodge/test/Test-NSString-JTAdditions.m
  153. +6 −8 Libraries/sparkle/Sparkle.xcodeproj/project.pbxproj
  154. +78 −143 NicePlayer.xcodeproj/project.pbxproj
  155. +1 −1 Other Sources/NiceUtilities.m
  156. +6 −4 Plugin Sources/DVDPlayer/DVDPlayer.xcodeproj/project.pbxproj
@@ -1,74 +1,57 @@
<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle" version="2.0">
<channel>
<title>NicePlayer AppCast</title>
<title>NicePlayer PreRelease</title>
<link>http://jay.tuley.name/build/</link>
<description>NicePlayer AppCast</description>
<description>NicePlayer PreRelease AppCast</description>
<generator>Feeder 1.4.9.v2 http://reinventedsoftware.com/feeder/</generator>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
<language>en</language>
<pubDate>Fri, 16 Nov 2007 16:28:51 -0600</pubDate>
<lastBuildDate>Fri, 16 Nov 2007 16:28:51 -0600</lastBuildDate>
<pubDate>Tue, 10 Jun 2008 22:10:54 -0500</pubDate>
<lastBuildDate>Tue, 10 Jun 2008 22:10:54 -0500</lastBuildDate>
<atom:link href="http://niceplayer.sf.net/update/NicePlayerAppCast.xml" rel="self" type="application/rss+xml"/>
<atom:link href="http://jay.tuley.name/build/update.php?app=NicePlayer" rel="self" type="application/rss+xml"/>
<item>
<title>NicePlayer 0.96.1</title>
<link>http://niceplayer.sf.net</link>
<description><![CDATA[<p>Version 0.96.1 (v572)
<br /> • Fixed playlist delete bug - introduced 0.96.0
<br /> • Fixed playlist drag and drop bug - introduced 0.96.0
<br /> • Added Leopard Sized Icons
<br /> • Added Sparkle Preference Pane
<br /> • Fixed preference bug that ignored preference changes - introduced 0.96.0
<br /> • Code signed
<br /> • Resolution Independent GUI (Glitchy in Tiger, works pretty good in Leopard)
<br /> • New and Updated AppleScripts for the Script Menu</p>]]></description>
<pubDate>Sat, 10 Nov 2007 00:37:06 -0600</pubDate>
<enclosure url="http://downloads.sourceforge.net/niceplayer/NicePlayer_0.96.1.dmg" length="2775377" type="application/x-diskcopy" sparkle:version="572"/>
<guid isPermaLink="false">niceplayer-096-1</guid>
<title>NicePlayer 0.96.2 Preview (v579) </title>
<link>http://jay.tuley.name/build/</link>
<description><![CDATA[<p>Version 0.96.2 Preview (v579)
<br /> • QuickLook support for mkv and divx file extensions
<br /> • m4v file extension document association added.</p>
<p>Help Request for Previewers:
<br /> • Report NicePlayer bugs in relation to QuickLook and Document Associations
<br /> • Report NicePlayer bugs in 10.5.3
<br /> • Report NicePlayer in relation to 10.4 compatibility with this preview.</p>]]></description>
<pubDate>Tue, 10 Jun 2008 22:07:45 -0500</pubDate>
<enclosure url="http://$$/NicePlayer/NicePlayer_Preview_579.zip!!" length="2586778" type="application/zip" sparkle:version="579"/>
<guid isPermaLink="false">niceplayer-0962-preview-v579</guid>
</item>
<item>
<title>NicePlayer 0.96</title>
<description><![CDATA[<p>Version 0.96 (v543)
<br /> • Basic Leopard compatibility
<br /> • Progressive movie loading progress in scrubbing area
<br /> • Chapters expand in playlist drawer.
<br /> • New Playlist and Volume menus
<br /> • Fixed subtitle bugs involving parsing commas in SSA, and foreign encodings.
<br /> • Using Sparkle for future updates
<br /> • Fixed Transparency behavior in regards to correctly representing opacity and transparency</p>]]></description>
<pubDate>Fri, 26 Oct 2007 00:29:54 -0500</pubDate>
<enclosure url="http://downloads.sourceforge.net/niceplayer/NicePlayer_0.96.dmg" length="1602219" type="application/x-diskcopy" sparkle:version="543"/>
<guid isPermaLink="false">niceplayer-096</guid>
<title>NicePlayer 0.96.2 Preview (v577)</title>
<link>http://jay.tuley.name/build</link>
<description><![CDATA[<p>Version 0.96.2 Preview (v577)
<br /> • NicePlayer Apple Remote code has been updated for Leopard</p>
<p>Help Request for Previewers:
<br /> • Report NicePlayer bugs in relation to Spaces with this preview.
<br /> • Report NicePlayer bugs in relation to Apple Remote control.
<br /> • Report NicePlayer in relation to 10.4 compatibility with this preview.</p>]]></description>
<pubDate>Tue, 25 Mar 2008 20:52:35 -0500</pubDate>
<enclosure url="http://$$/NicePlayer/NicePlayer_Preview_577.zip!!" length="2631456" type="application/zip" sparkle:version="577"/>
<guid isPermaLink="false">niceplayer-0962-preview-v577</guid>
</item>
<item>
<title>NicePlayer 0.95</title>
<description><![CDATA[<p>Version 0.95 (v514)
<br />• 100% Open Source (MPL/LGPL/GPL)
<br />• Added support for Chapters, and enabling extra Audio and Video tracks for the Core Video engine
<br />• Added basic support for external subtitle files
<br /> .ssa substation alpha,
<br /> .srt SubRip,
<br /> .sub MicroDVD
<br />• Added file type extension recognition for
<br /> .divx,
<br /> .vdvd (package around VIDEO_TS ala "VIrtual DVDs"),
<br /> .mkv (Matroska added in anticipation for future Perian support),
<br /> .ogg( for Theora/Ogg support provided by the xiph components),
<br /> .flv (for current perian support)
<br />• New fresh look
<br />• Added AppleScript-able Transparency, with a default script for applying it
<br />• Added preference for volume memory on creation of new windows
<br />• Added AppleScript vocabulary for determining full screen
<br />• Fixed bug that caused niceplayer to hang on quit after watching a DVD on a Core2Duo Macbook
<br />• Fixed bug involving not being able to unmute
<br />• Fixed bug involving changing window level in fullscreen
<br />• Fixed bug in auto dvd launching script
<br />• Fixed bug that sometimes would cause movies to show up black when opened off a removable disk
<br />• Fixed various crashes</p>]]></description>
<pubDate>Thu, 25 Oct 2007 22:27:59 -0500</pubDate>
<enclosure url="http://downloads.sourceforge.net/niceplayer/NicePlayer_0.95.dmg?use_mirror=easynews" length="916476" type="application/octet-stream" sparkle:version="514"/>
<guid isPermaLink="false">niceplayer-095</guid>
<title>NicePlayer 0.96.2 Preview (v575)</title>
<link>http://jay/tuley.name/build</link>
<description><![CDATA[<p>Version 0.96.2 Preview (v575)
<br /> • NicePlayer can now be set on every screen in Leopard Spaces</p>
<p>Help Request for Previewers:
<br /> • Report NicePlayer bugs in relation to Spaces with this preview.
<br /> • Report NicePlayer in relation to 10.4 compatibility with this preview.</p>]]></description>
<pubDate>Sun, 18 Nov 2007 17:49:00 -0600</pubDate>
<enclosure url="http://$$/NicePlayer/NicePlayer_Preview_575.zip!!" length="2805151" type="application/zip" sparkle:version="575"/>
<guid isPermaLink="false">niceplayer-096-1</guid>
</item>
</channel>
</rss>
@@ -70,7 +70,7 @@ + (BOOL) isRemoteAvailable {
- (id) initWithDelegate: (id) _remoteControlDelegate {
if ([[self class] isRemoteAvailable] == NO) return nil;
if ( self = [super initWithDelegate: _remoteControlDelegate] ) {
if (( self = [super initWithDelegate: _remoteControlDelegate]) ) {
openInExclusiveMode = YES;
queue = NULL;
hidDeviceInterface = NULL;
@@ -81,7 +81,7 @@ - (id) initWithDelegate: (id) _remoteControlDelegate {
NSEnumerator* enumerator = [cookieToButtonMapping objectEnumerator];
NSNumber* identifier;
supportedButtonEvents = 0;
while(identifier = [enumerator nextObject]) {
while((identifier = [enumerator nextObject])) {
supportedButtonEvents |= [identifier intValue];
}
@@ -260,7 +260,7 @@ - (NSString*) validCookieSubstring: (NSString*) cookieString {
if (cookieString == nil || [cookieString length] == 0) return nil;
NSEnumerator* keyEnum = [[self cookieToButtonMapping] keyEnumerator];
NSString* key;
while(key = [keyEnum nextObject]) {
while((key = [keyEnum nextObject])) {
NSRange range = [cookieString rangeOfString:key];
if (range.location == 0) return key;
}
@@ -284,7 +284,7 @@ - (void) handleEventWithCookieString: (NSString*) cookieString sumOfValues: (SIn
// happen when the main thread is too busy to handle all incoming events in time.
NSString* subCookieString;
NSString* lastSubCookieString=nil;
while(subCookieString = [self validCookieSubstring: cookieString]) {
while((subCookieString = [self validCookieSubstring: cookieString])) {
cookieString = [cookieString substringFromIndex: [subCookieString length]];
lastSubCookieString = subCookieString;
if (processesBacklog) [self handleEventWithCookieString: subCookieString sumOfValues:sumOfValues];
@@ -412,7 +412,7 @@ - (BOOL) initializeCookies {
NSEnumerator *elementsEnumerator = [elements objectEnumerator];
while (element = [elementsEnumerator nextObject]) {
while ((element = [elementsEnumerator nextObject])) {
//Get cookie
object = [element valueForKey: (NSString*)CFSTR(kIOHIDElementCookieKey) ];
if (object == nil || ![object isKindOfClass:[NSNumber class]]) continue;
@@ -453,7 +453,7 @@ - (BOOL) openDevice {
IOHIDElementCookie cookie;
NSEnumerator *allCookiesEnumerator = [allCookies objectEnumerator];
while (cookie = (IOHIDElementCookie)[[allCookiesEnumerator nextObject] intValue]) {
while ((cookie = (IOHIDElementCookie)[[allCookiesEnumerator nextObject] intValue])) {
(*queue)->addElement(queue, cookie, 0);
}
@@ -45,7 +45,7 @@ @implementation RemoteControl
// returns nil if the remote control device is not available
- (id) initWithDelegate: (id) _remoteControlDelegate {
if (self = [super init]) {
if ((self = [super init])) {
delegate = [_remoteControlDelegate retain];
}
return self;
View
@@ -57,6 +57,7 @@
RemoteControl* remote;
}
-(IBAction)emailAuthor:(id)sender;
-(RemoteControl*) remote;
-(void)setRemote:(RemoteControl*)aRemote;
View
@@ -49,8 +49,8 @@
#import "NPApplication.h"
#import <CocoaScriptMenu/CocoaScriptMenu.h>
#import "NiceUtilities.h"
#import <HodgePodge/IndyKit.h>
#import <Sparkle/Sparkle.h>
#import <STEnum/STEnum.h>
@@ -75,16 +75,13 @@ - (void)finishLaunching
}
// if(NPIs10_4OrGreater()){
if([[CSMScriptMenu sharedMenuGenerator] countOfScripts] == 0){
[self copyDefaultScriptsToApplicationSupport];
}else{
[self moveOldDefaultScriptsAndCopy];
}
[[CSMScriptMenu sharedMenuGenerator] updateScriptMenu];
// }
}
@@ -267,6 +264,17 @@ -(id)bestMovieWindow
}
-(IBAction)emailAuthor:(id)sender{
id tempInfo =[[NSBundle mainBundle] infoDictionary];
id tempEmail =[tempInfo objectForKey:@"JTAuthorEmail"];
if(tempEmail == nil){
NSRunAlertPanel(@"Email", @"Contact email address not provided by author.", @"Okay",nil,nil);
}else{
NSLog([NSString stringWithFormat:@"mailto:%@?subject=%@/%@(v%@)",tempEmail,[tempInfo objectForKey:@"CFBundleName"],[tempInfo objectForKey:@"CFBundleShortVersionString"],[tempInfo objectForKey:@"CFBundleVersion"],nil]);
[[NSWorkspace sharedWorkspace ]openURL: [NSURL URLWithString:[NSString stringWithFormat:@"mailto:%@?subject=%@/%@(v%@)",tempEmail,[tempInfo objectForKey:@"CFBundleName"],[tempInfo objectForKey:@"CFBundleShortVersionString"],[tempInfo objectForKey:@"CFBundleVersion"],nil]]];
}
}
#pragma mark -
#pragma mark Delegate Methods
View
@@ -45,7 +45,6 @@
#import <Carbon/Carbon.h>
#import "Overlay Widgets/BlackWindow.h"
#import "NiceWindow/NiceWindow.h"
#import <HodgePodge/IndyKit.h>
@interface NiceController : NSDocumentController {
IBOutlet id mainWindowProxy;
View
@@ -52,6 +52,8 @@
#import "AppleRemote.h"
#import "Preferences.h"
#import "NiceDocument.h"
#import <Preferable/Preferable.h>
#import <STEnum/STEnum.h>
id controller;
BOOL detectIsPlaying(id each, void* context){
@@ -292,7 +294,7 @@ -(IBAction)toggleFullScreen:(id)sender
-(IBAction)showPreferences:(id)sender
{
if(prefWindow ==nil)
prefWindow = [[[NSWindowController alloc] initWithWindowNibName:@"Preferences"] retain];
prefWindow = [[[PFPreferenceWindowController alloc] initWithWindowNibName:@"Preferences"] retain];
[prefWindow showWindow:self];
if(fullScreenMode)
[self exitFullScreen];
View
@@ -46,11 +46,11 @@
#import <Cocoa/Cocoa.h>
#import <Carbon/Carbon.h>
#import <HodgePodge/IndyKit.h>
#import "Viewer Interface/NPMovieView.h"
#import "NiceWindow/NiceWindow.h"
#import "Preferences/Preferences.h"
#import "Subtitle.h"
#import "AppleRemote.h"
@class NiceWindow;
@class NPMovieView;
@@ -80,6 +80,8 @@
BOOL wasPlayingBeforeMini;
}
-(void)appleRemoteButton:(RemoteControlEventIdentifier)buttonIdentifier pressedDown:(BOOL)pressedDown;
-(NSString*)identifier;
-(NSData *)dataRepresentationOfType:(NSString *)aType;
-(BOOL)readFromFile:(NSString *)fileName ofType:(NSString *)docType;
@@ -124,6 +126,7 @@
-(unsigned)getNextIndex;
-(void)playNext;
-(void)playPrev;
-(void)playPrevWithChapter;
-(unsigned)getPrevIndex;
-(BOOL)loadPlaylistFromURL:(NSURL *)aURL;
View
@@ -49,6 +49,7 @@
#import "AppleRemote.h"
#import "ControlPlay.h"
#import "JTTextFittingView.h"
#import <STEnum/STEnum.h>
#define PLAYLIST_ITEM -42
#define VOLUME_ITEM -43
@@ -121,6 +122,13 @@ void findSpace(id each, void* context, BOOL* endthis){
#import "NPApplication.h"
@interface NiceDocument(Private)
@end
@implementation NiceDocument
- (id)init
@@ -281,20 +289,21 @@ -(BOOL)finalOpenURLFirstTime:(BOOL)isFirst
hasRealMovie = YES;
/* Try to load the subtitles */
NSString* srtPath = [[[theCurrentURL path] stringByDeletingPathExtension] stringByAppendingPathExtension:@"srt"];
/* NSString* srtPath = [[[theCurrentURL path] stringByDeletingPathExtension] stringByAppendingPathExtension:@"srt"];
NSString* subPath = [[[theCurrentURL path] stringByDeletingPathExtension] stringByAppendingPathExtension:@"sub"];
NSString* ssaPath = [[[theCurrentURL path] stringByDeletingPathExtension] stringByAppendingPathExtension:@"ssa"];
NSString* ssaPath = [[[theCurrentURL path] stringByDeletingPathExtension] stringByAppendingPathExtension:@"ssa"];*/
[theSubtitle release];
if([[NSFileManager defaultManager] fileExistsAtPath:srtPath]){
/* disabled until subtitles are rewriten
if([[NSFileManager defaultManager] fileExistsAtPath:srtPath]){
theSubtitle = [[Subtitle alloc] initWithFile:srtPath forMovieSeconds:(float)[theMovieView totalTime]];
}else if ([[NSFileManager defaultManager] fileExistsAtPath:subPath]){
theSubtitle = [[Subtitle alloc] initWithFile:subPath forMovieSeconds:(float)[theMovieView totalTime]];
}else if ([[NSFileManager defaultManager] fileExistsAtPath:ssaPath]){
theSubtitle = [[Subtitle alloc] initWithFile:ssaPath forMovieSeconds:(float)[theMovieView totalTime]];
}else{
}else{*/
theSubtitle = nil;
}
//}
if(theSubtitle != nil){
[[theWindow subtitleView] setMaxText:[theSubtitle longestText]];
@@ -1231,6 +1240,9 @@ - (BOOL)outlineView:(NSOutlineView *)outlineView
if([pboard availableTypeFromArray:[NSArray arrayWithObject: NSFilenamesPboardType]]){
NSArray *urls = [pboard propertyListForType:NSFilenamesPboardType];
NSMutableArray* mutUrls= [NSMutableArray array];
BOOL tVerifyType = YES;
urls =[urls injectUsingFunction:NPInjectNestedDirectories into:mutUrls context:&tVerifyType];
urls = [urls collectUsingFunction:NPConvertFileNamesToURLs context:nil];
NSEnumerator *enumerator = [urls reverseObjectEnumerator];
@@ -972,7 +972,6 @@ -(void)setLevel:(int)windowLevel
*/
-(void)resizeWithSize:(NSSize)aSize animate:(BOOL)animate
{
#warning Fix this when Apple fixes setFrame:display:animate:
[self setFrame:[self calcResizeSize:aSize] display:YES animate:(animate ? [theMovieView canAnimateResize] : NO)];
}
@@ -48,7 +48,6 @@
#import <Cocoa/Cocoa.h>
#import <HodgePodge/IndyKit.h>
@interface NiceWindowController : NSWindowController {
@@ -45,6 +45,10 @@
#import "BlackWindow.h"
@interface NSWindow(Spaces)
-(void)setCanBeVisibleOnAllSpaces:(BOOL)aBool;
-(bool)canBeVisibleOnAllSpaces;
@end
@implementation BlackWindow
@@ -91,9 +95,7 @@ -(void)mouseDown:(NSEvent *)anEvent
if(presentingWindow != nil)
[presentingWindow makeKeyAndOrderFront:anEvent];
if(([anEvent type] == NSLeftMouseDown) && ([anEvent clickCount] > 0) && (([anEvent clickCount] % 2) == 0)){
[presentingWindow mouseDoubleClick:anEvent];
}
}
-(void)mouseUp:(NSEvent *)anEvent
@@ -52,6 +52,5 @@
IBOutlet NSWindow* overlayResize;
}
-(void)createResizeTriangle;
@end
Oops, something went wrong.

0 comments on commit 2591030

Please sign in to comment.