Problem with setContentBorderThickness:forEdge: not actually setting the value
        Posted  
        
            by jxpx777
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by jxpx777
        
        
        
        Published on 2010-06-15T18:43:39Z
        Indexed on 
            2010/06/17
            2:52 UTC
        
        
        Read the original article
        Hit count: 375
        
cocoa
|nswindowcontroller
I'm trying to use setContentBorderThickness:forEdge: to create a bottom bar in a Cocoa application.
mipadi was on to something, but in testing it out, I think maybe this is a slightly different problem:
-(void) adjustContentBorderBasedOnArrayControllerSelection{
    if(([[self.resultsArrayController selectionIndexes] count] == 0)){
        [[self window] setContentBorderThickness:40.0f forEdge:CGRectMinYEdge];
        NSLog(@"%f", [[self window] contentBorderThicknessForEdge:CGRectMinYEdge]);
    } else {
        [[self window] setContentBorderThickness:60.0f forEdge:CGRectMinYEdge];
        NSLog(@"%f", [[self window] contentBorderThicknessForEdge:CGRectMinYEdge]);
    }
}
Both of those NSLog() messages show the thickness value is 0.0 even after I explicitly set it. Anyone know what's up with that?
© Stack Overflow or respective owner