• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to get window title bar font ^size^ ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get window title bar font ^size^ ?


  • Subject: Re: How to get window title bar font ^size^ ?
  • From: Thomas Davie <email@hidden>
  • Date: Sun, 25 Nov 2007 14:09:12 +0000


On 25 Nov 2007, at 07:09, Philip Q wrote:

On 25/11/2007, Jerry Krinock <email@hidden> wrote:
NSFont provides:

+ (NSFont *)titleBarFontOfSize:(float)fontSize

Just what I need to get the font used in window title bars! But,
uhhh, what do I give for the fontSize argument? I know it looks like
about 13, but how do I get a "correct, supported, future-proof" answer?



The discussion for +titleBarFontOfSize: says:
"If fontSize is 0 or negative, returns the title bar font at the default size."

Perhaps that ought to be filed as a bug -- it's very inconsistent with the rest of NSFont's APIs, from which you'd expect to call titleBarFontSize, to find out the default size.


Bob
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


References: 
 >How to get window title bar font ^size^ ? (From: Jerry Krinock <email@hidden>)
 >Re: How to get window title bar font ^size^ ? (From: "Philip Q" <email@hidden>)

  • Prev by Date: Re: NSAnimation crashing on Leopard;
  • Next by Date: Newbie question: NSDocument and standard file formats
  • Previous by thread: Re: How to get window title bar font ^size^ ?
  • Next by thread: Re: How to get window title bar font ^size^ ?
  • Index(es):
    • Date
    • Thread