• 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: Getting color attribute from NSFontPanel/NSFontManager
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting color attribute from NSFontPanel/NSFontManager


  • Subject: Re: Getting color attribute from NSFontPanel/NSFontManager
  • From: Felix Franz <email@hidden>
  • Date: Mon, 18 Dec 2006 11:52:43 +0100

On Dec 18, 2006, at 7:28 AM, Vinay Prabhu wrote:


The same way, How do I get the ForeGround Color, UnderLine and StrikeThrough
attributes from Font Panel,
In order to apply these attributes to NSAttributedString?

After changing those attributes font panel tries to invoke the changeAttributes:
method on the responder chain. (The AppKit Release notes mentions this behavior
under "Font Effects Color Changes (Section added since WWDC)").


In this method you can use the usual "sender convertAttributes:" to adjust your
attributes.


Hope this helps,

felix
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: 
 >RE: Getting color attribute from NSFontPanel/NSFontManager (From: Vinay Prabhu <email@hidden>)

  • Prev by Date: Re: CoreData/NSManagedObject accessor performance problems
  • Next by Date: Getting the users typed text in a NSComboBox textfield
  • Previous by thread: RE: Getting color attribute from NSFontPanel/NSFontManager
  • Next by thread: Bindings and C Array
  • Index(es):
    • Date
    • Thread