It seems @skurfer's latest changes cause a crash in stringValue. To reproduce:
Create a trigger for a 'combined' object for a nonexistent file path. E.g. in text mode type ~/nowhere, pres ESC, then comma, then enter text mode again.
You'll be left with a dObject of 2 text objects (to nonexistent files). The action is irrelevant
Now add a keyboard shortcut to the trigger
Try and activate the trigger (whilst debugging Xcode). You'll see there's an infinite loop - caused by calling [object splitObjects] in the stringValue method.
Although, 8f902d7 could also be the bug. Checking for a real object using the stringValue as the identifier seems very hacky, although I know what you were trying to fix there
Checking for a real object using the stringValue as the identifier seems very hacky, although I know what you were trying to fix there
In general, text objects don’t have identifiers, but they did for a brief period as you probably remember. I think that code was there so any triggers (or other stored QSCommands) created during that period would still work. So most of the time, it doesn’t do anything.
But I too question using stringValue now. Since we know exactly what we’re after, it seems like objectForType: would work just as well.
It seems @skurfer's latest changes cause a crash in
stringValue
. To reproduce:~/nowhere
, pres ESC, then comma, then enter text mode again.dObject
of 2 text objects (to nonexistent files). The action is irrelevant[object splitObjects]
in thestringValue
method.This was broken by 9e84daa
The text was updated successfully, but these errors were encountered: