Skip to content

Commit 084f9dd

Browse files
committed
• In conformance with the new name announced by Apple last week, replaced all occurrences of "Mac OS X" and "OS X" in comments and string constants with "macOS".
1 parent 0056327 commit 084f9dd

35 files changed

+88
-88
lines changed

MAKVONotificationCenter.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ - (void)removeObserver:(id)observer {
217217
NSMutableArray* keysToRemove = [[NSMutableArray alloc] init] ;
218218
@synchronized(self)
219219
{
220-
// I guess we're still supporting Mac OS X 10.4?...
220+
// I guess we're still supporting macOS 10.4?...
221221
// Geez, I forgot how to do this...
222222
NSEnumerator* e = [observations keyEnumerator];
223223
NSString* key ;
@@ -265,4 +265,4 @@ - (void)removeObserver:(id)observer keyPath:(NSString *)keyPath selector:(SEL)se
265265
[[MAKVONotificationCenter defaultCenter] removeObserver:observer object:self keyPath:keyPath selector:selector];
266266
}
267267

268-
@end
268+
@end

SSWebBrowsing.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
+ (NSString*)defaultBrowserBundleIdentifier ;
2525

2626
/*!
27-
@details In OS X 10.10, there is Apple Bug 19642555, which causes
27+
@details In macOS 10.10, there is Apple Bug 19642555, which causes
2828
-[NSWorkspace openURLs:::::] to fail (and indeed return NO, if you rapid-fire
2929
it too quickly. Experimenting on my 2013 13 inch MacBook Air, opening 13 URLs
3030
in Safari, I find that a 50-100 millisecond delay is necessary between

SSYAlert.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ + (NSInteger)tryRecoveryAttempterForError:(NSError*)error
646646
}
647647
else if ([recoveryAttempter respondsToSelector:@selector(attemptRecoveryFromError:optionIndex:delegate:didRecoverSelector:contextInfo:)]) {
648648
/* This is an error produced by Cocoa.
649-
In particular, in Mac OS X 10.7, it might be one like this:
649+
In particular, in macOS 10.7, it might be one like this:
650650
Error Domain = NSCocoaErrorDomain
651651
Code = 67000
652652
UserInfo = {

SSYAlertSounder.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010

1111
/*!
12-
@brief This is wrapper on OS X and iOS Audio Services API, whose purpose is
12+
@brief This is wrapper on macOS and iOS Audio Services API, whose purpose is
1313
to play an alert sound cheaply and reliably (in contrast to NSSound)
1414
1515
@details Requires System/Library/Frameworks/AudioToolbox.framework,

SSYDisplayAlotPopUpButtonCell.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ - (void)dismissPopUp {
1212
}
1313

1414
#if (MAC_OS_X_VERSION_MAX_ALLOWED < 101000)
15-
// OS X 10.9.x or earlier
15+
// macOS 10.9.x or earlier
1616
// This makes absolutely no sense.
1717
#define NSCellHitResult NSUInteger
1818
#endif
@@ -29,4 +29,4 @@ - (NSCellHitResult)hitTestForEvent:(NSEvent *)event
2929

3030
#endif
3131

32-
@end
32+
@end

SSYDooDooUndoManager.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ extern NSString* const SSYUndoManagerDocumentWillSaveNotification ;
7777
will work again the next time it is invoked.
7878
7979
Note that if your document is a subclass of NSPersistentDocument,
80-
and your SDK is Mac OS X 10.6 or later, you could rewrite SSYDooDooUndoManager
80+
and your SDK is macOS 10.6 or later, you could rewrite SSYDooDooUndoManager
8181
to use SSYUndoManagerDocumentWillSaveNotification instead, and then you wouldn't
8282
need to send SSYUndoManagerDocumentWillSaveNotification.
8383

SSYIOKit.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
File: GetPrimaryMACAddress.c
33
44
Description: This sample application demonstrates how to do retrieve the Ethernet MAC
5-
address of the built-in Ethernet interface from the I/O Registry on Mac OS X.
5+
address of the built-in Ethernet interface from the I/O Registry on macOS.
66
Techniques shown include finding the primary (built-in) Ethernet interface,
77
finding the parent Ethernet controller, and retrieving properties from the
88
controller's I/O Registry entry.
@@ -187,7 +187,7 @@ + (NSData*)primaryMACAddressData {
187187

188188
if (MACAddressData == nil) {
189189
// May be a Hackintosh. Use email instead.
190-
// Starting with Mac OS X 10.8, -[ABAddressBook me] will produce an ugly warning
190+
// Starting with macOS 10.8, -[ABAddressBook me] will produce an ugly warning
191191
// asking if it's OK for your app to access Contacts, and will block until
192192
// user dismisses the dialog. But I figure that if someone
193193
// is using a Hackintosh, they should expect stuff like that.

SSYInterappClient.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ + (BOOL)sendHeaderByte:(char)txHeaderByte
118118
case kCFMessagePortTransportError:
119119
errorDetail = @"Transport Error" ;
120120
break ;
121-
case -5: // Mac OS X 10.6 SDK defines this as kCFMessagePortBecameInvalidError
121+
case -5: // macOS 10.6 SDK defines this as kCFMessagePortBecameInvalidError
122122
errorDetail = @"Port Became Invalid" ;
123123
break ;
124124
case SSYInterappClientErrorCantFindReceiver:
@@ -165,4 +165,4 @@ + (BOOL)sendHeaderByte:(char)txHeaderByte
165165
return ok ;
166166
}
167167

168-
@end
168+
@end

SSYInterappServer.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ extern NSString* const SSYInterappServerErrorDomain ;
1313
See comment at bottom of this file.
1414
1515
Troubleshooting tip. To see if a port is active in the system,
16-
* On OS X 10.9 or earlier
16+
* On macOS 10.9 or earlier
1717
* sudo launchctl bstree | grep <fragmentOfYourPortName>
1818
* Example:
1919
* sudo launchctl bstree | grep sheepsystems
20-
* On OS X 10.10 or later
20+
* On macOS 10.10 or later
2121
* sudo launchctl print user/<uid> | grep <fragmentOfYourPortName>
2222
* Example:
2323
* sudo launchctl print user/501 | grep sheepsystems
@@ -166,4 +166,4 @@ int main(int argc, const char *argv[])
166166

167167
return 0;
168168
}
169-
#endif
169+
#endif

SSYInterappServer.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ - (id)initWithPortName:(NSString*)portName
259259
*error_p = [NSError errorWithDomain:SSYInterappServerErrorDomain
260260
code:errorCode
261261
userInfo:[NSDictionary dictionaryWithObjectsAndKeys:
262-
@"Mac OS X failed to create a local message port.", NSLocalizedDescriptionKey,
262+
@"macOS failed to create a local message port.", NSLocalizedDescriptionKey,
263263
portName, @"Port Name",
264264
portAppearsToBeInUse ? @"Yup" : @"Nope", @"Port appears to be already in use?",
265265
localizedFailureReason, NSLocalizedDescriptionKey, // may be nil
@@ -333,4 +333,4 @@ - (void)unleaseForDelegate:(NSObject <SSYInterappServerDelegate> *)delegate {
333333
[static_serversInUse removeObject:self] ;
334334
}
335335

336-
@end
336+
@end

SSYKeychain.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ extern NSString *const kSSYKeychainErrorDomain;
1515

1616

1717
/*!
18-
@brief A class of class methods for accessing items in the user's OS X or
18+
@brief A class of class methods for accessing items in the user's macOS or
1919
iOS Keychain
2020
2121
@details This class is a fork of SSKeychain by Sam Soffes,
@@ -95,7 +95,7 @@ extern NSString *const kSSYKeychainErrorDomain;
9595
you may get a key "class", which I think is supposed to be "kcls", symbolized
9696
by kSecAttrKeyClass, and I think this is a bug in Keychain Services.
9797
98-
For convenience in debugging, the Attribute Item Keys in OS X 10.10.2 have
98+
For convenience in debugging, the Attribute Item Keys in macOS 10.10.2 have
9999
been dumped below. Of course, you should use the constants and not the values
100100
because the latter are an undocumented implementation detail.
101101
@@ -141,7 +141,7 @@ extern NSString *const kSSYKeychainErrorDomain;
141141
kSecAttrCanUnwrap = unwp
142142
kSecAttrAccessGroup = agrp
143143
144-
You will never see most of those keys. The keys I found when dumping my OS X
144+
You will never see most of those keys. The keys I found when dumping my macOS
145145
Keychain of of 114 items, prefixed by their number of occurrences, is:
146146
147147
114 kSecAttrModificationDate = mdat

SSYKeychainQuery.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
/*
55
#define CHECK_FOR_ICLOUD_SYNCHRONIZATION_IN_LATER_SDK to nonzero only if your
6-
app is sandboxed. If your app is not sandboxed, in OS X 10.11 or later,
6+
app is sandboxed. If your app is not sandboxed, in macOS 10.11 or later,
77
checking for iCloud synchronization will print two warnings like the following
88
to the system console every time that your app uses this class to fetch a
99
keychain item:
@@ -28,7 +28,7 @@ typedef NS_ENUM(NSUInteger, SSYKeychainQuerySynchronizationMode) {
2828
#endif
2929

3030
/*!
31-
@brief Object for querying and changing items in the OS X or iOS Keychain,
31+
@brief Object for querying and changing items in the macOS or iOS Keychain,
3232
doing the heavy lifting for SSYKeychain which has an easier interface and is
3333
recommended as a wrapper
3434

SSYLaunchdGuy.m

+9-9
Original file line numberDiff line numberDiff line change
@@ -42,34 +42,34 @@ + (NSError*)warnUserIfLaunchdHangInTaskResult:(NSInteger)result
4242
if ((result != 0) && ([error code] == SSYShellTaskerErrorTimedOut)) {
4343
/*
4444
This method was changed in BookMacster 1.14.4. I've had a couple
45-
reports from Mac OS X 10.8 users, and I saw this happen once myself,
46-
but unlike the restart that was necessary to fix it in Mac OS X 10.7,
45+
reports from macOS 10.8 users, and I saw this happen once myself,
46+
but unlike the restart that was necessary to fix it in macOS 10.7,
4747
it now seems to fix itself. So Apple didn't really fix it, but they
4848
made it enough better that we don't want to annoy the user with the
4949
warning any more.
5050
*/
5151
NSTimeInterval timeout = [[[error userInfo] objectForKey:constKeySSYShellTaskerTimeout] doubleValue] ;
5252
NSLog(@"Warning 516-7625 launchctl timed out at %0.1f secs.", timeout) ;
53-
NSString* reason = @"The launchd process of Mac OS X is not responding." ;
53+
NSString* reason = @"The launchd process of macOS is not responding." ;
5454
NSString* suggestion = @"You should restart your Mac at the next opportunity. "
5555
@"This bug has reportedly been fixed by Apple in Mac OS 10.8 (Mountain Lion)." ;
5656
error = [error errorByAddingLocalizedFailureReason:reason] ;
5757
error = [error errorByAddingLocalizedRecoverySuggestion:suggestion] ;
5858

5959
if (NSAppKitVersionNumber < 1187.370000) {
6060
// The above condition was added in BookMacster 1.14.4.
61-
// The above number is for Mac OS X 10.8.3. I'd like to use the
61+
// The above number is for macOS 10.8.3. I'd like to use the
6262
// number for 10.8.0, but can't find that. It doesn't matter that
6363
// much, oh well.
6464
// The reason for the condition now, is that this launchd thing
65-
// seems to fix itself after some time in Mac OS X 10.8. It no
65+
// seems to fix itself after some time in macOS 10.8. It no
6666
// requires a restart
6767
NSString* message = [NSString stringWithFormat:@"%@\n\n%@",
6868
reason,
6969
suggestion] ;
7070

7171
NSString* windowTitle = [NSString stringWithFormat:
72-
@"%@ : Problem with Mac OS X",
72+
@"%@ : Problem with macOS",
7373
[[NSProcessInfo processInfo] processName]] ;
7474
CFUserNotificationDisplayNotice (
7575
60, // timeout
@@ -90,7 +90,7 @@ + (NSError*)warnUserIfLaunchdHangInTaskResult:(NSInteger)result
9090

9191
// launchctl itself has a built-in timeout of 25 seconds (Mac OS 10.6.6).
9292
// So, anything over 25 seconds will act like 25 seconds. However, on
93-
// 20120428 launchctl got into some weird state in Mac OS X 10.7.3.
93+
// 20120428 launchctl got into some weird state in macOS 10.7.3.
9494
// Whenever I gave it a command to load or unload a job, it would hang
9595
// indefinitely. So I reduced this in BookMacster 1.11 from 180.0 to
9696
// 35.0 seconds.
@@ -471,7 +471,7 @@ + (pid_t)pidIfRunningLabel:(NSString*)label {
471471
NSString* trimmedResponse = [response stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]] ;
472472
/*
473473
The following line was fixed in BookMacster 1.17 so that it works
474-
if fields are separated by tabs (as they are in Mac OS X 10.8)
474+
if fields are separated by tabs (as they are in macOS 10.8)
475475
instead of spaces. Maybe they were spaces in an earlier OS X
476476
version? Anyhow, we handle either now.
477477
*/
@@ -827,4 +827,4 @@ + (BOOL)tryAgentLoad:(BOOL)load
827827
}
828828

829829

830-
@end
830+
@end

SSYLineBox.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
@brief Subclass of NSBox which makes collapses into a grayscale vertical or
55
horizontal line, with whiteness=0.2, alpha=1.0, thickness=1.0 point, restoring
66
the darkness of the "Vertical Line" and "Horizontal Line" object that became
7-
too white in OS X 10.10.
7+
too white in macOS 10.10.
88
9-
@details This subclass is useful in OS X 10.10 Yosemite. For some
9+
@details This subclass is useful in macOS 10.10 Yosemite. For some
1010
reason, the "Vertical Line" and "Horizontal Line" NSBox objects in the
11-
xib library, which produce a fairly dark line in earlier versions of OS X,
12-
produce a very light gray line in OS X 10.10 that is barely discernable on
11+
xib library, which produce a fairly dark line in earlier versions of macOS,
12+
produce a very light gray line in macOS 10.10 that is barely discernable on
1313
a white background. Just change the object class of your Vertical Line and
1414
Horizontal Line objects from NSBox to SSYLineBox
1515
*/

SSYLoginItems.m

+5-5
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ + (BOOL)loginItemWithURL:(NSURL*)url
139139
// Bug fixed in BookMacster 1.13.6 right here. The condition
140140
// "if (error)" on the next 2 dozen lines, which made no sense,
141141
// was removed.
142-
NSString* desc = @"Mac OS X could not resolve your Login Items." ;
142+
NSString* desc = @"macOS could not resolve your Login Items." ;
143143
NSString* path = [url path] ;
144144
if (!path) {
145145
path = [url absoluteString] ;
@@ -228,7 +228,7 @@ + (BOOL)isURL:(NSURL*)url
228228
end:
229229
if (error_p && !ok) {
230230
NSMutableDictionary* userInfo = [NSMutableDictionary dictionary] ;
231-
[userInfo setObject:@"Error probing your Mac OS X Login Items"
231+
[userInfo setObject:@"Error probing your macOS Login Items"
232232
forKey:NSLocalizedDescriptionKey] ;
233233
[userInfo setValue:[url absoluteString]
234234
forKey:@"Url"] ;
@@ -355,7 +355,7 @@ + (BOOL)removeLoginURL:(NSURL*)url
355355

356356
if (error_p && !ok) {
357357
NSMutableDictionary* userInfo = [NSMutableDictionary dictionary] ;
358-
[userInfo setObject:@"Error removing a Mac OS X Login Item"
358+
[userInfo setObject:@"Error removing a macOS Login Item"
359359
forKey:NSLocalizedDescriptionKey] ;
360360
[userInfo setValue:[url absoluteString]
361361
forKey:@"Url"] ;
@@ -510,7 +510,7 @@ + (SSYSharedFileListResult)synchronizeLoginItemPath:(NSString*)path
510510
end:
511511
if (error_p && !ok) {
512512
NSMutableDictionary* userInfo = [NSMutableDictionary dictionary] ;
513-
[userInfo setObject:@"Error synchronizing a Mac OS X Login Item"
513+
[userInfo setObject:@"Error synchronizing a macOS Login Item"
514514
forKey:NSLocalizedDescriptionKey] ;
515515
[userInfo setValue:[url absoluteString]
516516
forKey:@"Url"] ;
@@ -629,4 +629,4 @@ + (NSArray*)allLoginPathsError:(NSError**)error_p {
629629
}
630630

631631

632-
@end
632+
@end

SSYMOCManager.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
@param identifier A unique identifier for the context/store, or nil to return
7474
a "common" managed object context/store of the given type for the application.
7575
If storeType is NSSQLiteStoreType, identifier must contain only characters that are valid
76-
in a filename. That means, I believe, in Mac OS X, no slashes (/) or colons (:).
76+
in a filename. That means, I believe, in macOS, no slashes (/) or colons (:).
7777
This is because the identifier will be incorporated the name of an sqlite database
7878
file that will be created to support the new managed object context if necessary.
7979
@param momdName The baseName of the baseName.momd directory in

SSYManagedObject.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ + (NSString*)entityNameForClass:(Class)class {
131131

132132
+ (NSEntityDescription*)entityDescription {
133133
// This method was rewritten for BookMacster 1.19.2, to work around a
134-
// bug in Mac OS X 10.9. See
134+
// bug in macOS 10.9. See
135135
// http://stackoverflow.com/questions/19626858/over-optimization-bug-in-10-9-core-data-entity-description-methods
136136

137137
NSArray* bundles = [NSArray arrayWithObject:[NSBundle mainAppBundle]] ;
@@ -554,4 +554,4 @@ - (void)dealloc {
554554
#endif
555555

556556

557-
@end
557+
@end

SSYManagedTreeObject.m

+4-4
Original file line numberDiff line numberDiff line change
@@ -270,16 +270,16 @@ - (NSArray*)childrenOrdered {
270270
271271
* First Indication: Open Slow.bkmslf.
272272
273-
Expected result: Open in 7 seconds (MacMini2 - OS X 10.9)
273+
Expected result: Open in 7 seconds (MacMini2 - macOS 10.9)
274274
Actual Result: Open in 45 seconds.
275275
276276
* Second Indication: Edit a bookmark name in Saul.bkmslf, hit 'return'
277-
Expected result: less than 1 second (MacMini2 - OS X 10.9)
277+
Expected result: less than 1 second (MacMini2 - macOS 10.9)
278278
Actual result: 18 seconds.
279279
280280
* Third indication. Export Saul's bookmrks to Firefox, then change a bookmark title in Bkmx, then import from Firefox
281281
Expected result: Something reasonable
282-
Actual result: 45 minutes, mostly in Finding Parents (4/7) (MacMini2 - OS X 10.9)
282+
Actual result: 45 minutes, mostly in Finding Parents (4/7) (MacMini2 - macOS 10.9)
283283
284284
TRIED SOLUTIONS
285285
@@ -399,4 +399,4 @@ - (BOOL)extractFromDataRepresentation:(NSData*)dataRepresentation
399399
}
400400
*/
401401

402-
@end
402+
@end

SSYOAuthTalker.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ extern NSString* const constKeyOAuthTokenSecret ;
102102
+ (NSString*)keychainServiceNameForAccounter:(NSObject <SSYOAuthAccounter> *)accounter ;
103103

104104
/*!
105-
@brief Returns the Service Name in the Mac OS X Keychain which
105+
@brief Returns the Service Name in the macOS Keychain which
106106
stores the OAuth Token and OAuth Token Secret for the receiver.
107107
*/
108108
- (NSString*)keychainServiceName ;
@@ -112,7 +112,7 @@ extern NSString* const constKeyOAuthTokenSecret ;
112112
113113
@param accounter An object from which the account name and
114114
optional service name will be obtained just in time for writing
115-
an item to the Mac OS X Keychain. This is kept only as a weak
115+
an item to the macOS Keychain. This is kept only as a weak
116116
reference. Make sure it doesn't go away. (For example, a
117117
temporary Clientoid produced by a BookMacster Client is not a
118118
good object to use here.)
@@ -178,7 +178,7 @@ extern NSString* const constKeyOAuthTokenSecret ;
178178

179179
/*!
180180
@brief Writes the receiver's current credential information (token,
181-
token secret, user guid, and session handle) to the Mac OS X Keychain
181+
token secret, user guid, and session handle) to the macOS Keychain
182182
as a generic (application) password, under the current values of
183183
keychainServiceName and profileName
184184
*/

0 commit comments

Comments
 (0)