Skip to content

Let Xcode 2 launch past its build log check and window list - #547

Merged
colemancda merged 2 commits into
masterfrom
appkit-text-storage-subclass
Dec 3, 2026
Merged

colemancda merged 2 commits into
masterfrom
appkit-text-storage-subclass

Conversation

@colemancda

Copy link
Copy Markdown
Member

Xcode 2.4.1 (i386 slice) now gets through launch to its New User assistant.

  • TextView.swift: NSTextStorage answers +isSubclassOfClass: with yes for NSMutableAttributedString and NSAttributedString, whose messages it forwards to the string inside it. Xcode stopped at launch on an "Internal Error" alert: -[PBXBuildLog setTranscriptClass:] asserts that its transcript class is an NSMutableAttributedString subclass.
  • NSApplication.swift: adds NSCountWindows and NSWindowList, which count the app's visible windows and list their numbers front to back. Xcode calls them when it finishes launching. Without them the window count came back uninitialised and it crashed in DevToolsInterface.

Tested by running Xcode 2.4.1's i386 slice under perry32 on x86_64 Debian 13. It shows the New User assistant and stays up. The assistant's heading is cut off ("Welco..."), which is left for later.

@colemancda
colemancda merged commit ddf8633 into master Dec 3, 2026
6 of 7 checks passed
@colemancda
colemancda deleted the appkit-text-storage-subclass branch December 3, 2026 23:14
@colemancda

Copy link
Copy Markdown
Member Author

Xcode 2.4.1's i386 slice under perry32 on x86_64 Debian 13, at File > New Project > Cocoa Application:

xcode2-i386-new-cocoa-app

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