Merge lp:~rockstar/ubuntuone-ios-music/project-settings into lp:ubuntuone-ios-music

Proposed by Paul Hummer
Status: Merged
Approved by: Paul Hummer
Approved revision: 238
Merged at revision: 228
Proposed branch: lp:~rockstar/ubuntuone-ios-music/project-settings
Merge into: lp:ubuntuone-ios-music
Diff against target: 307 lines (+41/-34)
13 files modified
Dependencies/JSONKit/JSONKit.m (+18/-18)
Dependencies/oauthconsumer/OAMutableURLRequest.m (+1/-1)
Dependencies/oauthconsumer/OATokenManager.m (+1/-1)
SynthesizeSingleton.h (+1/-1)
U1Music.xcodeproj/project.pbxproj (+5/-3)
categories/UIImage+Resize.m (+4/-0)
utilities/AudioStreamer.h (+2/-2)
utilities/AudioStreamer.m (+3/-3)
utilities/Reachability.h (+1/-0)
utilities/U1SocketListener.h (+1/-1)
utilities/U1StreamWriter.h (+2/-2)
utilities/operations/Downloader.m (+1/-1)
utilities/operations/U1ChunkDownloadOperation.m (+1/-1)
To merge this branch: bzr merge lp:~rockstar/ubuntuone-ios-music/project-settings
Reviewer Review Type Date Requested Status
Zachery Bir Approve
Review via email: mp+120020@code.launchpad.net

Commit message

Update u1music project settings

Description of the change

Update the u1music project settings, kill most of the warnings.

The only warnings I didn't kill were the Categories re-implementing methods. It's encouraged that we use inheritance for that (and rightly so). However, that means refactoring, which I don't think we want to do right now.

This branch was SUPER educational.

To post a comment you must log in.
Revision history for this message
Zachery Bir (urbanape) wrote :

Looks good, land it!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'Dependencies/JSONKit/JSONKit.m'
--- Dependencies/JSONKit/JSONKit.m 2011-07-10 22:17:52 +0000
+++ Dependencies/JSONKit/JSONKit.m 2012-08-16 21:23:21 +0000
@@ -742,14 +742,14 @@
742- (void)getObjects:(id *)objectsPtr range:(NSRange)range742- (void)getObjects:(id *)objectsPtr range:(NSRange)range
743{743{
744 NSParameterAssert((objects != NULL) && (count <= capacity));744 NSParameterAssert((objects != NULL) && (count <= capacity));
745 if((objectsPtr == NULL) && (NSMaxRange(range) > 0UL)) { [NSException raise:NSRangeException format:@"*** -[%@ %@]: pointer to objects array is NULL but range length is %lu", NSStringFromClass([self class]), NSStringFromSelector(_cmd), NSMaxRange(range)]; }745 if((objectsPtr == NULL) && (NSMaxRange(range) > 0UL)) { [NSException raise:NSRangeException format:@"*** -[%@ %@]: pointer to objects array is NULL but range length is %u", NSStringFromClass([self class]), NSStringFromSelector(_cmd), NSMaxRange(range)]; }
746 if((range.location > count) || (NSMaxRange(range) > count)) { [NSException raise:NSRangeException format:@"*** -[%@ %@]: index (%lu) beyond bounds (%lu)", NSStringFromClass([self class]), NSStringFromSelector(_cmd), NSMaxRange(range), count]; }746 if((range.location > count) || (NSMaxRange(range) > count)) { [NSException raise:NSRangeException format:@"*** -[%@ %@]: index (%u) beyond bounds (%u)", NSStringFromClass([self class]), NSStringFromSelector(_cmd), NSMaxRange(range), count]; }
747 memcpy(objectsPtr, objects + range.location, range.length * sizeof(id));747 memcpy(objectsPtr, objects + range.location, range.length * sizeof(id));
748}748}
749749
750- (id)objectAtIndex:(NSUInteger)objectIndex750- (id)objectAtIndex:(NSUInteger)objectIndex
751{751{
752 if(objectIndex >= count) { [NSException raise:NSRangeException format:@"*** -[%@ %@]: index (%lu) beyond bounds (%lu)", NSStringFromClass([self class]), NSStringFromSelector(_cmd), objectIndex, count]; }752 if(objectIndex >= count) { [NSException raise:NSRangeException format:@"*** -[%@ %@]: index (%u) beyond bounds (%u)", NSStringFromClass([self class]), NSStringFromSelector(_cmd), objectIndex, count]; }
753 NSParameterAssert((objects != NULL) && (count <= capacity) && (objects[objectIndex] != NULL));753 NSParameterAssert((objects != NULL) && (count <= capacity) && (objects[objectIndex] != NULL));
754 return(objects[objectIndex]);754 return(objects[objectIndex]);
755}755}
@@ -770,7 +770,7 @@
770{770{
771 if(mutations == 0UL) { [NSException raise:NSInternalInconsistencyException format:@"*** -[%@ %@]: mutating method sent to immutable object", NSStringFromClass([self class]), NSStringFromSelector(_cmd)]; }771 if(mutations == 0UL) { [NSException raise:NSInternalInconsistencyException format:@"*** -[%@ %@]: mutating method sent to immutable object", NSStringFromClass([self class]), NSStringFromSelector(_cmd)]; }
772 if(anObject == NULL) { [NSException raise:NSInvalidArgumentException format:@"*** -[%@ %@]: attempt to insert nil", NSStringFromClass([self class]), NSStringFromSelector(_cmd)]; }772 if(anObject == NULL) { [NSException raise:NSInvalidArgumentException format:@"*** -[%@ %@]: attempt to insert nil", NSStringFromClass([self class]), NSStringFromSelector(_cmd)]; }
773 if(objectIndex > count) { [NSException raise:NSRangeException format:@"*** -[%@ %@]: index (%lu) beyond bounds (%lu)", NSStringFromClass([self class]), NSStringFromSelector(_cmd), objectIndex, count + 1UL]; }773 if(objectIndex > count) { [NSException raise:NSRangeException format:@"*** -[%@ %@]: index (%u) beyond bounds (%lu)", NSStringFromClass([self class]), NSStringFromSelector(_cmd), objectIndex, count + 1UL]; }
774#ifdef __clang_analyzer__774#ifdef __clang_analyzer__
775 [anObject retain]; // Stupid clang analyzer... Issue #19.775 [anObject retain]; // Stupid clang analyzer... Issue #19.
776#else776#else
@@ -783,7 +783,7 @@
783- (void)removeObjectAtIndex:(NSUInteger)objectIndex783- (void)removeObjectAtIndex:(NSUInteger)objectIndex
784{784{
785 if(mutations == 0UL) { [NSException raise:NSInternalInconsistencyException format:@"*** -[%@ %@]: mutating method sent to immutable object", NSStringFromClass([self class]), NSStringFromSelector(_cmd)]; }785 if(mutations == 0UL) { [NSException raise:NSInternalInconsistencyException format:@"*** -[%@ %@]: mutating method sent to immutable object", NSStringFromClass([self class]), NSStringFromSelector(_cmd)]; }
786 if(objectIndex >= count) { [NSException raise:NSRangeException format:@"*** -[%@ %@]: index (%lu) beyond bounds (%lu)", NSStringFromClass([self class]), NSStringFromSelector(_cmd), objectIndex, count]; }786 if(objectIndex >= count) { [NSException raise:NSRangeException format:@"*** -[%@ %@]: index (%u) beyond bounds (%u)", NSStringFromClass([self class]), NSStringFromSelector(_cmd), objectIndex, count]; }
787 _JKArrayRemoveObjectAtIndex(self, objectIndex);787 _JKArrayRemoveObjectAtIndex(self, objectIndex);
788 mutations = (mutations == NSUIntegerMax) ? 1UL : mutations + 1UL;788 mutations = (mutations == NSUIntegerMax) ? 1UL : mutations + 1UL;
789}789}
@@ -792,7 +792,7 @@
792{792{
793 if(mutations == 0UL) { [NSException raise:NSInternalInconsistencyException format:@"*** -[%@ %@]: mutating method sent to immutable object", NSStringFromClass([self class]), NSStringFromSelector(_cmd)]; }793 if(mutations == 0UL) { [NSException raise:NSInternalInconsistencyException format:@"*** -[%@ %@]: mutating method sent to immutable object", NSStringFromClass([self class]), NSStringFromSelector(_cmd)]; }
794 if(anObject == NULL) { [NSException raise:NSInvalidArgumentException format:@"*** -[%@ %@]: attempt to insert nil", NSStringFromClass([self class]), NSStringFromSelector(_cmd)]; }794 if(anObject == NULL) { [NSException raise:NSInvalidArgumentException format:@"*** -[%@ %@]: attempt to insert nil", NSStringFromClass([self class]), NSStringFromSelector(_cmd)]; }
795 if(objectIndex >= count) { [NSException raise:NSRangeException format:@"*** -[%@ %@]: index (%lu) beyond bounds (%lu)", NSStringFromClass([self class]), NSStringFromSelector(_cmd), objectIndex, count]; }795 if(objectIndex >= count) { [NSException raise:NSRangeException format:@"*** -[%@ %@]: index (%u) beyond bounds (%u)", NSStringFromClass([self class]), NSStringFromSelector(_cmd), objectIndex, count]; }
796#ifdef __clang_analyzer__796#ifdef __clang_analyzer__
797 [anObject retain]; // Stupid clang analyzer... Issue #19.797 [anObject retain]; // Stupid clang analyzer... Issue #19.
798#else798#else
@@ -2559,17 +2559,17 @@
2559 // supported classes, we fail the second type (i.e., double fault error).2559 // supported classes, we fail the second type (i.e., double fault error).
2560 BOOL rerunningAfterClassFormatter = NO;2560 BOOL rerunningAfterClassFormatter = NO;
2561rerunAfterClassFormatter:2561rerunAfterClassFormatter:
2562 if(JK_EXPECT_T(object->isa == encodeState->fastClassLookup.stringClass)) { isClass = JKClassString; }2562 if(JK_EXPECT_T(object_getClass(object) == encodeState->fastClassLookup.stringClass)) { isClass = JKClassString; }
2563 else if(JK_EXPECT_T(object->isa == encodeState->fastClassLookup.numberClass)) { isClass = JKClassNumber; }2563 else if(JK_EXPECT_T(object_getClass(object) == encodeState->fastClassLookup.numberClass)) { isClass = JKClassNumber; }
2564 else if(JK_EXPECT_T(object->isa == encodeState->fastClassLookup.dictionaryClass)) { isClass = JKClassDictionary; }2564 else if(JK_EXPECT_T(object_getClass(object) == encodeState->fastClassLookup.dictionaryClass)) { isClass = JKClassDictionary; }
2565 else if(JK_EXPECT_T(object->isa == encodeState->fastClassLookup.arrayClass)) { isClass = JKClassArray; }2565 else if(JK_EXPECT_T(object_getClass(object) == encodeState->fastClassLookup.arrayClass)) { isClass = JKClassArray; }
2566 else if(JK_EXPECT_T(object->isa == encodeState->fastClassLookup.nullClass)) { isClass = JKClassNull; }2566 else if(JK_EXPECT_T(object_getClass(object) == encodeState->fastClassLookup.nullClass)) { isClass = JKClassNull; }
2567 else {2567 else {
2568 if(JK_EXPECT_T([object isKindOfClass:[NSString class]])) { encodeState->fastClassLookup.stringClass = object->isa; isClass = JKClassString; }2568 if(JK_EXPECT_T([object isKindOfClass:[NSString class]])) { encodeState->fastClassLookup.stringClass = object_getClass(object); isClass = JKClassString; }
2569 else if(JK_EXPECT_T([object isKindOfClass:[NSNumber class]])) { encodeState->fastClassLookup.numberClass = object->isa; isClass = JKClassNumber; }2569 else if(JK_EXPECT_T([object isKindOfClass:[NSNumber class]])) { encodeState->fastClassLookup.numberClass = object_getClass(object); isClass = JKClassNumber; }
2570 else if(JK_EXPECT_T([object isKindOfClass:[NSDictionary class]])) { encodeState->fastClassLookup.dictionaryClass = object->isa; isClass = JKClassDictionary; }2570 else if(JK_EXPECT_T([object isKindOfClass:[NSDictionary class]])) { encodeState->fastClassLookup.dictionaryClass = object_getClass(object); isClass = JKClassDictionary; }
2571 else if(JK_EXPECT_T([object isKindOfClass:[NSArray class]])) { encodeState->fastClassLookup.arrayClass = object->isa; isClass = JKClassArray; }2571 else if(JK_EXPECT_T([object isKindOfClass:[NSArray class]])) { encodeState->fastClassLookup.arrayClass = object_getClass(object); isClass = JKClassArray; }
2572 else if(JK_EXPECT_T([object isKindOfClass:[NSNull class]])) { encodeState->fastClassLookup.nullClass = object->isa; isClass = JKClassNull; }2572 else if(JK_EXPECT_T([object isKindOfClass:[NSNull class]])) { encodeState->fastClassLookup.nullClass = object_getClass(object); isClass = JKClassNull; }
2573 else {2573 else {
2574 if((rerunningAfterClassFormatter == NO) && (2574 if((rerunningAfterClassFormatter == NO) && (
2575#ifdef __BLOCKS__2575#ifdef __BLOCKS__
@@ -2751,7 +2751,7 @@
2751 for(id keyObject in enumerateObject) {2751 for(id keyObject in enumerateObject) {
2752 if(JK_EXPECT_T(printComma)) { if(JK_EXPECT_F(jk_encode_write1(encodeState, 0L, ","))) { return(1); } }2752 if(JK_EXPECT_T(printComma)) { if(JK_EXPECT_F(jk_encode_write1(encodeState, 0L, ","))) { return(1); } }
2753 printComma = 1;2753 printComma = 1;
2754 if(JK_EXPECT_F((keyObject->isa != encodeState->fastClassLookup.stringClass)) && JK_EXPECT_F(([keyObject isKindOfClass:[NSString class]] == NO))) { jk_encode_error(encodeState, @"Key must be a string object."); return(1); }2754 if(JK_EXPECT_F((object_getClass(keyObject) != encodeState->fastClassLookup.stringClass)) && JK_EXPECT_F(([keyObject isKindOfClass:[NSString class]] == NO))) { jk_encode_error(encodeState, @"Key must be a string object."); return(1); }
2755 if(JK_EXPECT_F(jk_encode_add_atom_to_buffer(encodeState, keyObject))) { return(1); }2755 if(JK_EXPECT_F(jk_encode_add_atom_to_buffer(encodeState, keyObject))) { return(1); }
2756 if(JK_EXPECT_F(jk_encode_write1(encodeState, 0L, ":"))) { return(1); }2756 if(JK_EXPECT_F(jk_encode_write1(encodeState, 0L, ":"))) { return(1); }
2757 if(JK_EXPECT_F(jk_encode_add_atom_to_buffer(encodeState, (void *)CFDictionaryGetValue((CFDictionaryRef)object, keyObject)))) { return(1); }2757 if(JK_EXPECT_F(jk_encode_add_atom_to_buffer(encodeState, (void *)CFDictionaryGetValue((CFDictionaryRef)object, keyObject)))) { return(1); }
@@ -2762,7 +2762,7 @@
2762 for(idx = 0L; idx < dictionaryCount; idx++) {2762 for(idx = 0L; idx < dictionaryCount; idx++) {
2763 if(JK_EXPECT_T(printComma)) { if(JK_EXPECT_F(jk_encode_write1(encodeState, 0L, ","))) { return(1); } }2763 if(JK_EXPECT_T(printComma)) { if(JK_EXPECT_F(jk_encode_write1(encodeState, 0L, ","))) { return(1); } }
2764 printComma = 1;2764 printComma = 1;
2765 if(JK_EXPECT_F(((id)keys[idx])->isa != encodeState->fastClassLookup.stringClass) && JK_EXPECT_F([(id)keys[idx] isKindOfClass:[NSString class]] == NO)) { jk_encode_error(encodeState, @"Key must be a string object."); return(1); }2765 if(JK_EXPECT_F((object_getClass((id)keys[idx])) != encodeState->fastClassLookup.stringClass) && JK_EXPECT_F([(id)keys[idx] isKindOfClass:[NSString class]] == NO)) { jk_encode_error(encodeState, @"Key must be a string object."); return(1); }
2766 if(JK_EXPECT_F(jk_encode_add_atom_to_buffer(encodeState, keys[idx]))) { return(1); }2766 if(JK_EXPECT_F(jk_encode_add_atom_to_buffer(encodeState, keys[idx]))) { return(1); }
2767 if(JK_EXPECT_F(jk_encode_write1(encodeState, 0L, ":"))) { return(1); }2767 if(JK_EXPECT_F(jk_encode_write1(encodeState, 0L, ":"))) { return(1); }
2768 if(JK_EXPECT_F(jk_encode_add_atom_to_buffer(encodeState, objects[idx]))) { return(1); }2768 if(JK_EXPECT_F(jk_encode_add_atom_to_buffer(encodeState, objects[idx]))) { return(1); }
27692769
=== modified file 'Dependencies/oauthconsumer/OAMutableURLRequest.m'
--- Dependencies/oauthconsumer/OAMutableURLRequest.m 2011-07-10 22:17:52 +0000
+++ Dependencies/oauthconsumer/OAMutableURLRequest.m 2012-08-16 21:23:21 +0000
@@ -129,7 +129,7 @@
129129
130- (void)_generateTimestamp {130- (void)_generateTimestamp {
131 [timestamp release];131 [timestamp release];
132 timestamp = [[NSString alloc]initWithFormat:@"%d", time(NULL)];132 timestamp = [[NSString alloc]initWithFormat:@"%ld", time(NULL)];
133}133}
134134
135- (void)_generateNonce {135- (void)_generateNonce {
136136
=== modified file 'Dependencies/oauthconsumer/OATokenManager.m'
--- Dependencies/oauthconsumer/OATokenManager.m 2011-07-10 22:17:52 +0000
+++ Dependencies/oauthconsumer/OATokenManager.m 2012-08-16 21:23:21 +0000
@@ -93,7 +93,7 @@
93 [self exchangeToken];93 [self exchangeToken];
94 } else {94 } else {
95 [authorizedTokenKey release];95 [authorizedTokenKey release];
96 authorizedTokenKey = [aKey retain];96 authorizedTokenKey = [aKey copy];
97 }97 }
98}98}
9999
100100
=== modified file 'SynthesizeSingleton.h'
--- SynthesizeSingleton.h 2010-09-24 05:34:15 +0000
+++ SynthesizeSingleton.h 2012-08-16 21:23:21 +0000
@@ -58,7 +58,7 @@
58 return NSUIntegerMax; \58 return NSUIntegerMax; \
59} \59} \
60 \60 \
61- (void)release \61- (oneway void)release \
62{ \62{ \
63} \63} \
64 \64 \
6565
=== modified file 'U1Music.xcodeproj/project.pbxproj'
--- U1Music.xcodeproj/project.pbxproj 2012-08-13 16:35:03 +0000
+++ U1Music.xcodeproj/project.pbxproj 2012-08-16 21:23:21 +0000
@@ -1216,7 +1216,7 @@
1216 29B97313FDCFA39411CA2CEA /* Project object */ = {1216 29B97313FDCFA39411CA2CEA /* Project object */ = {
1217 isa = PBXProject;1217 isa = PBXProject;
1218 attributes = {1218 attributes = {
1219 LastUpgradeCheck = 0420;1219 LastUpgradeCheck = 0440;
1220 ORGANIZATIONNAME = Canonical;1220 ORGANIZATIONNAME = Canonical;
1221 };1221 };
1222 buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "U1Music" */;1222 buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "U1Music" */;
@@ -1497,7 +1497,8 @@
1497 GCC_OPTIMIZATION_LEVEL = 0;1497 GCC_OPTIMIZATION_LEVEL = 0;
1498 GCC_PRECOMPILE_PREFIX_HEADER = YES;1498 GCC_PRECOMPILE_PREFIX_HEADER = YES;
1499 GCC_PREFIX_HEADER = U1Music_Prefix.pch;1499 GCC_PREFIX_HEADER = U1Music_Prefix.pch;
1500 GCC_VERSION = com.apple.compilers.llvmgcc42;1500 GCC_THUMB_SUPPORT = NO;
1501 GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
1501 INFOPLIST_FILE = "U1Music-Info.plist";1502 INFOPLIST_FILE = "U1Music-Info.plist";
1502 LIBRARY_SEARCH_PATHS = (1503 LIBRARY_SEARCH_PATHS = (
1503 "$(inherited)",1504 "$(inherited)",
@@ -1527,7 +1528,8 @@
1527 CURRENT_PROJECT_VERSION = 6;1528 CURRENT_PROJECT_VERSION = 6;
1528 GCC_PRECOMPILE_PREFIX_HEADER = YES;1529 GCC_PRECOMPILE_PREFIX_HEADER = YES;
1529 GCC_PREFIX_HEADER = U1Music_Prefix.pch;1530 GCC_PREFIX_HEADER = U1Music_Prefix.pch;
1530 GCC_VERSION = com.apple.compilers.llvmgcc42;1531 GCC_THUMB_SUPPORT = NO;
1532 GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
1531 INFOPLIST_FILE = "U1Music-Info.plist";1533 INFOPLIST_FILE = "U1Music-Info.plist";
1532 IPHONEOS_DEPLOYMENT_TARGET = 4.0;1534 IPHONEOS_DEPLOYMENT_TARGET = 4.0;
1533 LIBRARY_SEARCH_PATHS = (1535 LIBRARY_SEARCH_PATHS = (
15341536
=== modified file 'categories/UIImage+Resize.m'
--- categories/UIImage+Resize.m 2011-05-02 07:33:18 +0000
+++ categories/UIImage+Resize.m 2012-08-16 21:23:21 +0000
@@ -189,6 +189,8 @@
189 transform = CGAffineTransformTranslate(transform, 0, newSize.height);189 transform = CGAffineTransformTranslate(transform, 0, newSize.height);
190 transform = CGAffineTransformRotate(transform, -M_PI_2);190 transform = CGAffineTransformRotate(transform, -M_PI_2);
191 break;191 break;
192 default:
193 break;
192 }194 }
193 195
194 switch (self.imageOrientation) {196 switch (self.imageOrientation) {
@@ -203,6 +205,8 @@
203 transform = CGAffineTransformTranslate(transform, newSize.height, 0);205 transform = CGAffineTransformTranslate(transform, newSize.height, 0);
204 transform = CGAffineTransformScale(transform, -1, 1);206 transform = CGAffineTransformScale(transform, -1, 1);
205 break;207 break;
208 default:
209 break;
206 }210 }
207 211
208 return transform;212 return transform;
209213
=== modified file 'utilities/AudioStreamer.h'
--- utilities/AudioStreamer.h 2012-02-17 20:55:09 +0000
+++ utilities/AudioStreamer.h 2012-08-16 21:23:21 +0000
@@ -25,7 +25,7 @@
25#import <UIKit/UIKit.h>25#import <UIKit/UIKit.h>
26#else26#else
27#import <Cocoa/Cocoa.h>27#import <Cocoa/Cocoa.h>
28#endif TARGET_OS_IPHONE 28#endif // TARGET_OS_IPHONE
2929
30#include <pthread.h>30#include <pthread.h>
31#include <AudioToolbox/AudioToolbox.h>31#include <AudioToolbox/AudioToolbox.h>
@@ -170,7 +170,7 @@
170}170}
171171
172@property AudioStreamerErrorCode errorCode;172@property AudioStreamerErrorCode errorCode;
173@property (readonly) AudioStreamerState state;173@property (nonatomic, readonly) AudioStreamerState state;
174@property (readonly) AudioStreamerStopReason stopReason;174@property (readonly) AudioStreamerStopReason stopReason;
175@property (readonly) double progress;175@property (readonly) double progress;
176@property (readonly) double duration;176@property (readonly) double duration;
177177
=== modified file 'utilities/AudioStreamer.m'
--- utilities/AudioStreamer.m 2012-02-17 20:55:09 +0000
+++ utilities/AudioStreamer.m 2012-08-16 21:23:21 +0000
@@ -56,7 +56,7 @@
56NSString * const AS_AUDIO_BUFFER_TOO_SMALL_STRING = @"Audio packets are larger than kAQDefaultBufSize.";56NSString * const AS_AUDIO_BUFFER_TOO_SMALL_STRING = @"Audio packets are larger than kAQDefaultBufSize.";
5757
58@interface AudioStreamer () <UIAlertViewDelegate>58@interface AudioStreamer () <UIAlertViewDelegate>
59@property (readwrite) AudioStreamerState state;59@property (nonatomic, readwrite) AudioStreamerState state;
60@property UIBackgroundTaskIdentifier bgTaskId;60@property UIBackgroundTaskIdentifier bgTaskId;
6161
62- (void)handlePropertyChangeForFileStream:(AudioFileStreamID)inAudioFileStream62- (void)handlePropertyChangeForFileStream:(AudioFileStreamID)inAudioFileStream
@@ -649,7 +649,7 @@
649 if (fileLength > 0 && seekByteOffset > 0)649 if (fileLength > 0 && seekByteOffset > 0)
650 {650 {
651 CFHTTPMessageSetHeaderFieldValue(message, CFSTR("Range"),651 CFHTTPMessageSetHeaderFieldValue(message, CFSTR("Range"),
652 (CFStringRef)[NSString stringWithFormat:@"bytes=%ld-%ld", seekByteOffset, fileLength]);652 (CFStringRef)[NSString stringWithFormat:@"bytes=%u-%u", seekByteOffset, fileLength]);
653 discontinuous = YES;653 discontinuous = YES;
654 }654 }
655 655
@@ -765,7 +765,7 @@
765 if (state != AS_STOPPING &&765 if (state != AS_STOPPING &&
766 state != AS_STOPPED)766 state != AS_STOPPED)
767 {767 {
768 NSLog(@"### Not starting audio thread. State code is: %ld", state);768 NSLog(@"### Not starting audio thread. State code is: %u", state);
769 }769 }
770 self.state = AS_INITIALIZED;770 self.state = AS_INITIALIZED;
771 [pool release];771 [pool release];
772772
=== modified file 'utilities/Reachability.h'
--- utilities/Reachability.h 2010-09-20 20:32:15 +0000
+++ utilities/Reachability.h 2012-08-16 21:23:21 +0000
@@ -48,6 +48,7 @@
4848
49#import <Foundation/Foundation.h>49#import <Foundation/Foundation.h>
50#import <SystemConfiguration/SystemConfiguration.h>50#import <SystemConfiguration/SystemConfiguration.h>
51#import <netinet/in.h>
5152
52typedef enum {53typedef enum {
53 NotReachable = 0,54 NotReachable = 0,
5455
=== modified file 'utilities/U1SocketListener.h'
--- utilities/U1SocketListener.h 2012-02-07 23:01:23 +0000
+++ utilities/U1SocketListener.h 2012-08-16 21:23:21 +0000
@@ -23,7 +23,7 @@
2323
24@interface U1SocketListener : NSObject24@interface U1SocketListener : NSObject
2525
26@property (copy) U1SocketListenerAcceptHandler acceptHandler;26@property (nonatomic, copy) U1SocketListenerAcceptHandler acceptHandler;
2727
28+ (U1SocketListener*)localListenerWithPort:(NSUInteger)port error:(NSError **)error;28+ (U1SocketListener*)localListenerWithPort:(NSUInteger)port error:(NSError **)error;
2929
3030
=== modified file 'utilities/U1StreamWriter.h'
--- utilities/U1StreamWriter.h 2012-02-15 22:15:38 +0000
+++ utilities/U1StreamWriter.h 2012-08-16 21:23:21 +0000
@@ -25,8 +25,8 @@
2525
26@interface U1StreamWriter : NSObject26@interface U1StreamWriter : NSObject
2727
28@property (copy) U1StreamWriterErrorHandler errorHandler;28@property (nonatomic, copy) U1StreamWriterErrorHandler errorHandler;
29@property (copy) void(^completionHandler)();29@property (nonatomic, copy) void(^completionHandler)();
30@property (assign) id<U1StreamWriterDelegate> delegate;30@property (assign) id<U1StreamWriterDelegate> delegate;
3131
32- (id)initWithDescriptor:(U1Descriptor*)aSocket;32- (id)initWithDescriptor:(U1Descriptor*)aSocket;
3333
=== modified file 'utilities/operations/Downloader.m'
--- utilities/operations/Downloader.m 2012-02-17 19:45:46 +0000
+++ utilities/operations/Downloader.m 2012-08-16 21:23:21 +0000
@@ -172,7 +172,7 @@
172 [chunkRanges enumerateObjectsUsingBlock:^(id rangeValue, NSUInteger idx, BOOL *stop) {172 [chunkRanges enumerateObjectsUsingBlock:^(id rangeValue, NSUInteger idx, BOOL *stop) {
173 NSRange range = [rangeValue rangeValue];173 NSRange range = [rangeValue rangeValue];
174 174
175 NSString *path = [[tmpDir path] stringByAppendingPathComponent:[NSString stringWithFormat:@"%lu.chunk", idx]];175 NSString *path = [[tmpDir path] stringByAppendingPathComponent:[NSString stringWithFormat:@"%u.chunk", idx]];
176 176
177 U1ChunkDownloadOperation *chunk = [[U1ChunkDownloadOperation alloc] initWithUrl:url path:path andRange:range];177 U1ChunkDownloadOperation *chunk = [[U1ChunkDownloadOperation alloc] initWithUrl:url path:path andRange:range];
178 178
179179
=== modified file 'utilities/operations/U1ChunkDownloadOperation.m'
--- utilities/operations/U1ChunkDownloadOperation.m 2012-02-08 23:56:03 +0000
+++ utilities/operations/U1ChunkDownloadOperation.m 2012-08-16 21:23:21 +0000
@@ -22,7 +22,7 @@
22- (id)initWithUrl:(NSURL *)url path:(NSString *)aPath andRange:(NSRange)aRange;22- (id)initWithUrl:(NSURL *)url path:(NSString *)aPath andRange:(NSRange)aRange;
23{23{
24 NSMutableURLRequest *request = [[NSMutableURLRequest alloc] initWithURL:url];24 NSMutableURLRequest *request = [[NSMutableURLRequest alloc] initWithURL:url];
25 NSString *requestRange = [NSString stringWithFormat:@"bytes=%lu-%lu", aRange.location, NSMaxRange(aRange) - 1];25 NSString *requestRange = [NSString stringWithFormat:@"bytes=%u-%u", aRange.location, NSMaxRange(aRange) - 1];
26 [request setValue:requestRange forHTTPHeaderField:@"Range"];26 [request setValue:requestRange forHTTPHeaderField:@"Range"];
27 27
28 self = [super initWithRequest:request];28 self = [super initWithRequest:request];

Subscribers

People subscribed via source and target branches