Skip to content

Commit

Permalink
Issue #2: Enabled -[MIKMIDIMapping writeToFileAtURL:error:] on iOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
armadsen committed May 16, 2014
1 parent fed2812 commit 99ebc03
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Source/MIKMIDIMapping.m
Original file line number Diff line number Diff line change
Expand Up @@ -274,16 +274,13 @@ - (NSString *)XMLStringRepresentation;

- (BOOL)writeToFileAtURL:(NSURL *)fileURL error:(NSError **)error;
{
#if !TARGET_OS_IPHONE
error = error ? error : &(NSError *__autoreleasing){ nil };
NSData *xmlData = [[self XMLStringRepresentation] dataUsingEncoding:NSUTF8StringEncoding];
if (![xmlData writeToURL:fileURL options:NSDataWritingAtomic error:error]) {
NSLog(@"Error saving MIDI mapping %@ to %@: %@", self.name, fileURL, *error);
return NO;
}
return YES;
#endif
return NO;
}

- (BOOL)isEqual:(MIKMIDIMapping *)otherMapping
Expand Down

0 comments on commit 99ebc03

Please sign in to comment.