objective c - property not found on object of type error but property is there -
so i'm trying access property isportclosed(bool) in serialportcontroller , giving me error, i'm kinda new objective-c. feel should work i've got reference class *port. here link project.
error messages: ~/groundstation/groundstation/viewcontroller.m:16:22: property 'isportclosed' not found on object of type 'serialportcontroller *'
#import <cocoa/cocoa.h> #import "sceneview.h" #import "serialportcontroller.h" @interface viewcontroller : nsviewcontroller @property (strong) iboutlet serialportcontroller *port; @property (weak) iboutlet sceneview *accelsceneview; @end #import "viewcontroller.h" @implementation viewcontroller - (void)viewdidload { [super viewdidload]; // additional setup after loading view. while(!self.port.isportclosed) { } } - (void)setrepresentedobject:(id)representedobject { [super setrepresentedobject:representedobject]; // update view, if loaded. } @end
serialportcontroller.h class
#import <foundation/foundation.h> #import <orsserial/orsserial.h> @interface serialportcontroller : nsobject <orsserialportdelegate> @property (nonatomic, strong) orsserialport *serial; @property (nonatomic, strong) orsserialportmanager *serialportmanager; @property (nonatomic) nsinteger xangle; @property (nonatomic) nsinteger yangle; @property (nonatomic) nsinteger zangle; @property (nonatomic) nsstring *stringbuffer; @property (nonatomic) bool isportclosed; @end
from downloaded project see have 2 serialportcontroller
class definitions (one @ root directory, , 1 in /groundstation/), , latter doesn't have public properties. should have 1 serialportcontroller
class definition linked in project (the 1 public properties).
Comments
Post a Comment