Re: Font menu in an NSPopUpButton
Re: Font menu in an NSPopUpButton
- Subject: Re: Font menu in an NSPopUpButton
- From: Chris Hanson <email@hidden>
- Date: Thu, 16 Oct 2003 18:41:24 -0500
On Thursday, October 16, 2003, at 04:41 PM, Darrin Cardani wrote:
I want an NSPopUpButton that contains a list of fonts. I see that
Interface Builder supplies a menu for fonts that you can put into your
menubar menus, but I don't see a way to create a popup button with
fonts in it. What's the recommended way to do that?
You should be able to set the menu of your popup button to use the
result of -[NSFontManager fontMenu:].
-- Chris
--
Chris Hanson, bDistributed.com, Inc. | Email: email@hidden
Custom Mac OS X Development | Phone: +1-847-372-3955
http://bdistributed.com/ | Fax: +1-847-589-3738
http://bdistributed.com/Articles/ | Personal Email: email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.