> I use this code to change the fontsize:
> 
> NSFont *font1 = [NSFont fontWithName:[pop1 titleOfSelectedItem] size:[[pop2
> titleOfSelectedItem] doubleValue]];

In the second popup’s action method, you should be invoking
-[NSFontManager convertFont:toSize:] to convert the fonts to the right
size. (And, in the first popup, -[NSFontManager convertFont:toFace:].)

<http://developer.apple.com/DOCUMENTATION/Cocoa/Reference/ApplicationKit/Classes/NSFontManager_Class/Reference/Reference.html#//apple_ref/occ/instm/NSFontManager/convertFont:toSize:>

-Ben
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to