Skip to content

Commit 19b9ce1

Browse files
authored
code style
1 parent c496b60 commit 19b9ce1

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

Parse/Parse/Internal/Object/Subclassing/PFObjectSubclassingController.m

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -340,17 +340,14 @@ - (void)_registerSubclassesInLoadedBundle:(NSBundle *)bundle {
340340
return;
341341
}
342342

343-
// Because the Parse Framework cannot be bundled with a macOS Command Line Application, the Parse Framework will need to be
344-
// external to the application. Per Apple's Framework Programming Guide,
343+
// The Parse framework cannot be bundled with a macOS Command Line Application but needs to be
344+
// external to the application. The preferred file system location is '/Library/Frameworks' and we don't
345+
// want to filter out the Parse framework if it is installed there. See also:
345346
// https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPFrameworks/Tasks/InstallingFrameworks.html#//apple_ref/doc/uid/20002261-97286
346-
// the preferred file-system location would be /Library/Frameworks
347-
// In these cases, we will not want to filter out the Parse.framework if it is installed in /Library/Frameworks.
348347
if ([bundle.bundlePath hasPrefix:@"/Library/"]) {
349-
350348
if ([bundle.bundlePath hasPrefix:@"/Library/Frameworks/"] && [[bundle.bundlePath lastPathComponent] isEqualToString:@"Parse.framework"]) {
351-
[self _registerSubclassesInBundle:bundle]; // Handle case where Parse.framework is installed in /Library/Frameworks
349+
[self _registerSubclassesInBundle:bundle];
352350
}
353-
354351
return;
355352
}
356353

0 commit comments

Comments
 (0)