Skip to content

@objection_initializer not passing arguments #83

Open
@drekka

Description

@drekka

I have the following initialiser in a class:

objection_initializer(initWithComms:)
-(instancetype) initWithComms:(Comms *) commsX {
    self = [super init];
    if (self) {
        _comms = commsX;
    }
    return self;
}

However when I run the code the commsX argument is nil. I've tried to follow the Objection code and it appears that it is building an instance of the Comms object and putting it into it's context. However it's not passed through to the code that actually creates the instance of this code.

Am I doing anything wrong? I found the sample code on the Objection website rather difficult to follow :-(

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