On Oct 1, 2007, at 04:10, [EMAIL PROTECTED] wrote:

> Revision: 11175
>          http://bibdesk.svn.sourceforge.net/bibdesk/? 
> rev=11175&view=rev
> Author:   hofman
> Date:     2007-10-01 04:10:58 -0700 (Mon, 01 Oct 2007)
>
> Log Message:
> -----------
> Make sure there is a title in the scale popup so we can get it's  
> attributes to determine the length.

The only time I can get a non-empty attribute dictionary out of an  
NSPopUpButton on Tiger is by calling setAttributedTitle: first, but  
that's not guaranteed to work in future.  Additionally, asking a zero- 
length attributed string for attributesAtIndex:0 effectiveRange:  
doesn't raise on Tiger, but we can't count on that being the case in  
future (and it's counter to the docs).  Can we just use the font set  
in a previous step to get the string width?

-- 
adam

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bibdesk-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-develop

Reply via email to