On Jan 15, 2012, at 23:38, Adam R. Maxwell wrote:

> 
> On Jan 15, 2012, at 13:46 , Christiaan Hofman wrote:
> 
>> I think this may have a problem because the fileview may not fill the 
>> scrollview. At least in our version, the background color is also set on the 
>> scrollview in -[BibDocument windowControllerDidLoadNib:]. Did you have some 
>> workaround for that?
> 
> That would indeed be a problem, particularly since I've set -backgroundColor 
> to return nil on 10.7 (as a signal to use the gradient), but it wouldn't 
> match up with a solid color in the scrollview anyway.  I'm not sure when it 
> wouldn't fill the scrollview, though; I'd think that was a fileview geometry 
> problem, but it's been a while since I looked at that...
> 
> -- 
> Adam
> 

Looking into it, it does not seem to be a problem. It seems to always calculate 
the size at least as big as the clipview, and I cannot reproduce any problems. 
I am not sure why this was done in the past, perhaps when the frame calculation 
was different, or perhaps it was a 10.4 problem.

Another small problem is that you draw the blue gradient only when the window 
is key. That's wrong, it should also be blue when the window is main but not 
key, e.g. when a utility panel is key.

I always wondered how the color would know how it should draw, how would it 
know about the window? Is this some private property of graphics contexts?

Christiaan


------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
Bibdesk-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-develop

Reply via email to