Open
Description
Here is part of Finder.h
generated in Objective-C, following Apple's usual instructions:
And here is what gets generated for the Swift API:
The Issue
Notice that in the ObjC version, -items
returns an SBElementArray
of FinderItem
objects. In the Swift version, items() returns void. This is not correct and completely breaks the API.
Manually changing the Swift file to:
@objc optional func items() -> SBElementArray
Causes items()
to return the expected value, which can then be used. I do not see how a void
return can be appropriate here and believe this is a bug with the scripts translating the sdef into Swift.
Metadata
Metadata
Assignees
Labels
No labels