Skip to content

Commit c6ad7b9

Browse files
committed
removeObserver
1 parent a2db4da commit c6ad7b9

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

CocoaDebug.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@
269269
3828BA29259E223B00ABF650 /* FPSCounter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3828BA26259E223B00ABF650 /* FPSCounter.swift */; };
270270
3828BA2A259E223B00ABF650 /* _DebugConsoleLabel.h in Headers */ = {isa = PBXBuildFile; fileRef = 3828BA27259E223B00ABF650 /* _DebugConsoleLabel.h */; settings = {ATTRIBUTES = (Public, ); }; };
271271
3828BA2B259E223B00ABF650 /* _DebugConsoleLabel.m in Sources */ = {isa = PBXBuildFile; fileRef = 3828BA28259E223B00ABF650 /* _DebugConsoleLabel.m */; };
272-
3828BA33259E234C00ABF650 /* FpsBubble.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3828BA32259E234C00ABF650 /* FpsBubble.swift */; };
272+
3828BA33259E234C00ABF650 /* UIBlockingBubble.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3828BA32259E234C00ABF650 /* UIBlockingBubble.swift */; };
273273
385945EE256D07D400ADA065 /* _SwiftLogHelper.swift in Sources */ = {isa = PBXBuildFile; fileRef = 385945ED256D07D400ADA065 /* _SwiftLogHelper.swift */; };
274274
3871CFFA27042E1F005967AE /* _BacktraceLogger.h in Headers */ = {isa = PBXBuildFile; fileRef = 3871CFF627042E1F005967AE /* _BacktraceLogger.h */; settings = {ATTRIBUTES = (Public, ); }; };
275275
3871CFFB27042E1F005967AE /* _BacktraceLogger.m in Sources */ = {isa = PBXBuildFile; fileRef = 3871CFF727042E1F005967AE /* _BacktraceLogger.m */; };
@@ -556,7 +556,7 @@
556556
3828BA26259E223B00ABF650 /* FPSCounter.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FPSCounter.swift; sourceTree = "<group>"; };
557557
3828BA27259E223B00ABF650 /* _DebugConsoleLabel.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = _DebugConsoleLabel.h; sourceTree = "<group>"; };
558558
3828BA28259E223B00ABF650 /* _DebugConsoleLabel.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = _DebugConsoleLabel.m; sourceTree = "<group>"; };
559-
3828BA32259E234C00ABF650 /* FpsBubble.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FpsBubble.swift; sourceTree = "<group>"; };
559+
3828BA32259E234C00ABF650 /* UIBlockingBubble.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UIBlockingBubble.swift; sourceTree = "<group>"; };
560560
385945ED256D07D400ADA065 /* _SwiftLogHelper.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = _SwiftLogHelper.swift; sourceTree = "<group>"; };
561561
3871CFF627042E1F005967AE /* _BacktraceLogger.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = _BacktraceLogger.h; sourceTree = "<group>"; };
562562
3871CFF727042E1F005967AE /* _BacktraceLogger.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = _BacktraceLogger.m; sourceTree = "<group>"; };
@@ -957,7 +957,7 @@
957957
isa = PBXGroup;
958958
children = (
959959
3826DAF924EE5BF5003DE040 /* Bubble.swift */,
960-
3828BA32259E234C00ABF650 /* FpsBubble.swift */,
960+
3828BA32259E234C00ABF650 /* UIBlockingBubble.swift */,
961961
3826DAFA24EE5BF5003DE040 /* WindowHelper.swift */,
962962
3826DAFB24EE5BF5003DE040 /* CocoaDebugNavigationController.swift */,
963963
3826DAFC24EE5BF5003DE040 /* CocoaDebugViewController.swift */,
@@ -1352,7 +1352,7 @@
13521352
3826DC4824EE5BF5003DE040 /* LogViewController.swift in Sources */,
13531353
3826DB5024EE5BF5003DE040 /* _CrashModel.swift in Sources */,
13541354
3826DD2E24EE5FD5003DE040 /* _Sandboxer.m in Sources */,
1355-
3828BA33259E234C00ABF650 /* FpsBubble.swift in Sources */,
1355+
3828BA33259E234C00ABF650 /* UIBlockingBubble.swift in Sources */,
13561356
3826DB5324EE5BF5003DE040 /* AboutViewController.swift in Sources */,
13571357
3826DB4924EE5BF5003DE040 /* AppInfoViewController.swift in Sources */,
13581358
3828BA29259E223B00ABF650 /* FPSCounter.swift in Sources */,
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,9 @@ class UIBlockingBubble: UIView {
7878
required init?(coder aDecoder: NSCoder) {
7979
fatalError("init(coder:) has not been implemented")
8080
}
81+
82+
deinit {
83+
//notification
84+
NotificationCenter.default.removeObserver(self)
85+
}
8186
}

0 commit comments

Comments
 (0)