Skip to content

Fix typos, modernize os(OSX) → os(macOS), and clean up Notification.Name bridging in XCPlayground#80

Open
crleonard wants to merge 4 commits into
apple:mainfrom
crleonard:fix/typos-and-os-macOS-modernization
Open

Fix typos, modernize os(OSX) → os(macOS), and clean up Notification.Name bridging in XCPlayground#80
crleonard wants to merge 4 commits into
apple:mainfrom
crleonard:fix/typos-and-os-macOS-modernization

Conversation

@crleonard
Copy link
Copy Markdown

A collection of small, low-risk housekeeping fixes across PlaygroundLogger and PlaygroundSupport.

Changes

Bug fixes

  • Fix two user-facing error strings in PlaygroundQuickLook+OpaqueRepresentationSupport.swift
    that read "is is" instead of "it is" (lines 106 and 116). These strings surface in Xcode's playground results panel.

Typo fix

  • Fix misspelled // MARK: Deprected XCPlaygroundPage in
    CaptureValueTests.swift.

Modernization

  • Replace os(OSX) with os(macOS) in XCPlaygroundPage.swift and
    XCPShowView.swift (5 occurrences).

  • Replace "string" as NSString as NSNotification.Name with
    Notification.Name(rawValue: "string") across the four notification posts
    in XCPlaygroundPage.swift. The double-bridge cast is unnecessary;
    PlaygroundPage.swift already uses the correct form.

Testing

All existing tests pass:

  • PlaygroundLogger (macOS): 44 tests, 0 failures
  • XCPlayground (macOS): 6 tests, 0 failures

Two error strings in PlaygroundQuickLook+OpaqueRepresentationSupport.swift
contained "is is" instead of "it is". These strings surface in Xcode's
playground results panel.
CaptureValueTests.swift had a misspelled MARK label.
Replace '"string" as NSString as NSNotification.Name' with
'Notification.Name(rawValue: "string")' across all four notification
posts, consistent with how PlaygroundPage.swift already constructs them.
@crleonard crleonard requested a review from cwakamo as a code owner April 26, 2026 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant