pyobjc
pyobjc copied to clipboard
NSIndexSet.alloc().initWithIndex_ segfaults
Describe the bug
The following code segfaults:
from Foundation import NSIndexSet
s = NSIndexSet.alloc().initWithIndex_(0)
This is used in array_property
so using array_property
also causes segfaults.
Note that NSIndexSet.indexSetWithIndex_(0)
works fine.
Platform information
- Python version 3.12.6
- How was python installed (python.org, anaconda, homebrew, ...) homebrew
- macOS version 14.7, but also happens on 13.6.6