Accessing IBOutlet of a controller in another class in COCOA -
i have controller iboutlet follow :
@interface mycontroller : nsviewcontroller <nspopoverdelegate> { iboutlet nswindow *detachedwindow; } @property (retain, nonatomic) nswindow *detachedwindow; @end
i want access outlet(detachedwindow
) in class is: subclass added cell view in view based table view.
@interface hovertablerowview : nstablerowview<nstableviewdelegate,nspopoverdelegate> { __weak mycontroller *_delegateobject; } @implementation hovertablerowview @synthesize delegateobject = _delegateobject; - (void)awakefromnib { nslog(@"awake nib being called"); nslog(@"detached window outlet is--%@",[[self delegateobject ]detachedwindow]); } @end
but detached window outlet is--
returning null
. how can access outlet in `hovertablerowview' class ?
Comments
Post a Comment