Skip to content
This repository was archived by the owner on Oct 30, 2018. It is now read-only.

Commit 4b0ce38

Browse files
author
acandelaria1
authored
Merge pull request #514 from slackhq/exposing-cacheTextView
Changed all other calls of cache textView
2 parents e8fdf3e + 851c7a8 commit 4b0ce38

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Source/SLKTextViewController.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ - (void)viewDidDisappear:(BOOL)animated
222222
[super viewDidDisappear:animated];
223223

224224
// Caches the text before it's too late!
225-
[self slk_cacheTextView];
225+
[self cacheTextView];
226226
}
227227

228228
- (void)viewWillLayoutSubviews
@@ -2282,9 +2282,9 @@ - (void)slk_registerNotifications
22822282
[notificationCenter addObserver:self selector:@selector(slk_didShakeTextView:) name:SLKTextViewDidShakeNotification object:nil];
22832283

22842284
// Application notifications
2285-
[notificationCenter addObserver:self selector:@selector(slk_cacheTextView) name:UIApplicationWillTerminateNotification object:nil];
2286-
[notificationCenter addObserver:self selector:@selector(slk_cacheTextView) name:UIApplicationDidEnterBackgroundNotification object:nil];
2287-
[notificationCenter addObserver:self selector:@selector(slk_cacheTextView) name:UIApplicationDidReceiveMemoryWarningNotification object:nil];
2285+
[notificationCenter addObserver:self selector:@selector(cacheTextView) name:UIApplicationWillTerminateNotification object:nil];
2286+
[notificationCenter addObserver:self selector:@selector(cacheTextView) name:UIApplicationDidEnterBackgroundNotification object:nil];
2287+
[notificationCenter addObserver:self selector:@selector(cacheTextView) name:UIApplicationDidReceiveMemoryWarningNotification object:nil];
22882288
}
22892289

22902290
- (void)slk_unregisterNotifications

0 commit comments

Comments
 (0)