• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

「プロジェクト終了」 BathyScapheのプレビューアプラグインを複数使用出来るようにするプラグイン


Commit MetaInfo

Revision254bbd08c6e22f96230a7a74123a161627702745 (tree)
Time2012-07-13 19:58:31
Authormasakih <masakih@user...>
Commitermasakih

Log Message

[Mod] ソースコード整理

Change Summary

Incremental Difference

--- a/PSPreference.m
+++ b/PSPreference.m
@@ -4,10 +4,6 @@
44 #import "PSPreviewerItem.h"
55
66
7-@interface PSPreference(PSPrivate)
8-- (id)privateInit;
9-@end
10-
117 @implementation PSPreference
128
139 static NSString *const PSPItemPastboardType = @"PSPItemPastboardType";
--- a/PSPreviewerItem.m
+++ b/PSPreviewerItem.m
@@ -29,14 +29,9 @@ static NSMutableDictionary *previewerInfo = nil;
2929 {
3030 static BOOL isFirst = YES;
3131 if(isFirst) {
32- @synchronized(self) {
33- if(isFirst) {
34- isFirst = NO;
35-
36- previewerInfo = [[NSMutableDictionary alloc] init];
37-// NSLog(@"Initialize.");
38- }
39- }
32+ isFirst = NO;
33+
34+ previewerInfo = [[NSMutableDictionary alloc] init];
4035 }
4136 }
4237
--- a/PreviewerSelector.m
+++ b/PreviewerSelector.m
@@ -175,10 +175,9 @@ final:
175175
176176 - (NSMenuItem *)preferenceMenuItem
177177 {
178- id res;
179178 NSString *title = PSLocalizedString(@"Preference...", @"Preference Menu Item.");
180179
181- res = [[[NSMenuItem alloc] initWithTitle:title action:Nil keyEquivalent:@""] autorelease];
180+ id res = [[[NSMenuItem alloc] initWithTitle:title action:Nil keyEquivalent:@""] autorelease];
182181 [res setAction:@selector(openPSPreference:)];
183182 [res setTarget:self];
184183
@@ -188,8 +187,7 @@ final:
188187 - (NSMenuItem *)previewMenuItemForLink:(id)link
189188 {
190189 NSURL *url = [NSURL URLWithString:link];
191- id res;
192- res = [[[NSMenuItem alloc] initWithTitle:@"" action:Nil keyEquivalent:@""] autorelease];
190+ id res = [[[NSMenuItem alloc] initWithTitle:@"" action:Nil keyEquivalent:@""] autorelease];
193191
194192 id submenu = [[[NSMenu alloc] initWithTitle:@""] autorelease];
195193 [res setSubmenu:submenu];