i'm having a subclassed NSView. i created an object as below:
CustomView * ClockT = [[CustomView alloc]init];
ClockT.tZone = @"Canada/Yukon";
[HolderView addSubview:ClockT];
but the view does not shown. how can i fix that?
i'm having a subclassed NSView. i created an object as below:
CustomView * ClockT = [[CustomView alloc]init];
ClockT.tZone = @"Canada/Yukon";
[HolderView addSubview:ClockT];
but the view does not shown. how can i fix that?
Use [[CustomView alloc] initWithFrame:frame]
passing a meaningful frame or assign a frame after creation.
Basically there are only three reasons why a view may be invisible: