• R/O
  • SSH
  • HTTPS

mani2: コミット


コミットメタ情報

リビジョン55 (tree)
日時2009-06-21 21:08:12
作者hikarin

ログメッセージ

[mani2/cocoa] * accepted URL that starts with "mani2://"

変更サマリ

差分

--- trunk/cocoa/Classes/MMPlayer.m (revision 54)
+++ trunk/cocoa/Classes/MMPlayer.m (revision 55)
@@ -813,8 +813,13 @@
813813 && (canvasId = [[[[url path] lastPathComponent] stringByDeletingPathExtension] intValue]) > 0) {
814814 CreateUrlsFromCanvasId(canvasId, &logURL, &jsonURL, &layerURL);
815815 }
816+ else if (url != nil && [[url scheme] isEqualToString:@"mani2"]
817+ && (canvasId = [[[url resourceSpecifier] substringFromIndex:2] intValue]) > 0) {
818+ CreateUrlsFromCanvasId(canvasId, &logURL, &jsonURL, &layerURL);
819+ }
816820 else {
817- *aError = [MMAux createErrorFromString:@"Invalid canvas ID or URL" domain:kMMApplicationExceptionErrorDomain];
821+ *aError = [MMAux createErrorFromString:@"Invalid canvas ID or URL"
822+ domain:kMMApplicationExceptionErrorDomain];
818823 return nil;
819824 }
820825 }
旧リポジトリブラウザで表示