Skip to content

Commit

Permalink
Modernize library searching a bit.
Browse files Browse the repository at this point in the history
  • Loading branch information
dsklen committed Oct 18, 2013
1 parent 8423877 commit 5e96e22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library.m
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
// Completion Scope: Function or Method

NSArray *librarySearchPaths = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES);
NSString *libraryDirectory = [librarySearchPaths count] == 0 ? nil : [librarySearchPaths objectAtIndex:0];
NSString *libraryDirectory = [librarySearchPaths firstObject];

0 comments on commit 5e96e22

Please sign in to comment.