Skip to content

Commit

Permalink
s/NSDictionary/NSBundle/
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Burgin committed Aug 15, 2024
1 parent a56f6c5 commit ed26d68
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Source/common/SNTFileInfo.m
Original file line number Diff line number Diff line change
Expand Up @@ -423,9 +423,8 @@ - (NSDictionary *)infoPlist {
return self.infoDict;
}

// `-[NSDictionary infoDictionary]` is heavily cached, changes to the Info.plist are not
// realized. Use `CFBundleCopyInfoDictionaryInDirectory` instead, which does not appear to
// cache.
// `-[NSBundle infoDictionary]` is heavily cached, changes to the Info.plist are not realized.
// Use `CFBundleCopyInfoDictionaryInDirectory` instead, which does not appear to cache.
NSString *bundlePath = [self bundlePath];
if (bundlePath.length) {
d = CFBridgingRelease(CFBundleCopyInfoDictionaryInDirectory(
Expand Down

0 comments on commit ed26d68

Please sign in to comment.