Skip to content

Lay out object specifiers as Mac OS 9.2.2 does - #77

Merged
colemancda merged 7 commits into
masterfrom
feature/object-specifier
Dec 3, 2026
Merged

colemancda merged 7 commits into
masterfrom
feature/object-specifier

Conversation

@colemancda

Copy link
Copy Markdown
Member

BBEdit Lite 6.1 builds an object specifier ("every text window") while opening its untitled window. A specifier's data handle isn't laid out like a record's, so this captures it on Mac OS 9.2.2 and follows it.

  • ObjectSpecifierCapture.c and its output: the data is the item count, a zero and want, from, form, seld, a record without its header.
  • Descriptor.classicData() and Descriptor(type:classicData:) read and write 'obj ' that way, including a specifier nested in another.
  • Descriptor.objectSpecifier(desiredClass:container:keyForm:keyData:) builds one.
  • ObjectSpecifierTests compares the bytes with the capture.

Not covered: coercing a specifier to a record doesn't keep 'obj ' in the record's header as Mac OS does, and what disposeInputs does with the container wasn't settled.

@colemancda
colemancda merged commit 8ec20b2 into master Dec 3, 2026
3 checks passed
@colemancda
colemancda deleted the feature/object-specifier branch December 3, 2026 12:47
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