Skip to content

emit not accessibel in swift #13

@mvdevries

Description

@mvdevries

The method emit is not accessible in swift because it is a variadic method.

I had a accessible socket class through a bridging header and every method was accessible except for emit.

I also tried a solution from Stack, http://stackoverflow.com/questions/24195796/how-do-you-call-an-objective-c-variadic-method-from-swift but i didn't got it to work.

A possible workaround would be a method with a NSArray as argument like this:
schermafbeelding 2014-09-24 om 22 38 08

This is the call in swift:
schermafbeelding 2014-09-24 om 22 40 28

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions