• 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

Revision1b492dd894a15f1640b2bd530d67806cdc1f9ded (tree)
Time2012-05-19 02:03:29
Authormasakih <masakih@user...>
Commitermasakih

Log Message

[Mod] 不要になった部分を削除

Change Summary

Incremental Difference

--- a/Ex/BSIPEReplacer.h
+++ b/Ex/BSIPEReplacer.h
@@ -16,7 +16,6 @@
1616 NSTextView *_textView;
1717 BSInlinePreviewerEx *_owner;
1818
19- BOOL _newStorage;
2019 NSUInteger _selfAwaking;
2120 }
2221 @property (retain) NSTextView *textView;
--- a/Ex/BSIPEReplacer.m
+++ b/Ex/BSIPEReplacer.m
@@ -8,8 +8,6 @@
88
99 #import "BSIPEReplacer.h"
1010
11-@interface BSIPEReplacer ()
12-@property BOOL newStorage;
1311
1412 // 画像挿入によって引き起こしたNSTextStorageDidProcessEditingNotificationの回数
1513 @property NSUInteger selfAwaking;
@@ -20,7 +18,6 @@
2018 @synthesize textView = _textView;
2119 @synthesize owner = _owner;
2220
23-@synthesize newStorage = _newStorage;
2421 @synthesize selfAwaking = _selfAwaking;
2522
2623
@@ -51,7 +48,7 @@ id keyForTextView(NSTextView *view)
5148 - (void)setTextView:(NSTextView *)textView
5249 {
5350 NSNotificationCenter *nc = [NSNotificationCenter defaultCenter];
54- [nc removeObserver:self name:nil object:nil];
51+ [nc removeObserver:self];
5552
5653 @synchronized(self) {
5754 [_textView release];
@@ -126,7 +123,6 @@ NSRange fixRange(NSRange range, NSTextStorage *ts)
126123 {
127124 NSUInteger length = [[self.textView textStorage] length];
128125 if(length == 0) {
129- self.newStorage = YES;
130126 self.selfAwaking = 0;
131127 return;
132128 }