pyobjc icon indicating copy to clipboard operation
pyobjc copied to clipboard

NSIndexSet.alloc().initWithIndex_ segfaults

Open Sbte opened this issue 5 months ago • 3 comments

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

Sbte avatar Sep 25 '24 10:09 Sbte