• 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: pasteFont: is a no-op for plain-text text objects?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pasteFont: is a no-op for plain-text text objects?


  • Subject: Re: pasteFont: is a no-op for plain-text text objects?
  • From: Douglas Davidson <email@hidden>
  • Date: Fri, 22 Nov 2002 12:01:49 -0800

On Friday, November 22, 2002, at 11:34 AM, Daniel Zitter wrote:

With expectations set by the documentation, I assumed that calling pasteFont: on a plain-text NSTextView would have set the font for the entire text to the font on the font pasteboard. This does not work for me. (Try this yourself in TextEdit. It doesn't work there either.)

In the case of a rich-text text view, as expected, pasteFont: does the thing with the stuff, and if I write my own implementation of pasteFont: in a subclass of NSTextView, that works.

This is a bug that has already been fixed internally. NSFontPboardType was not being added to the readablePasteboardTypes for non-rich-text textviews, even if they used the font panel. You should be able to work around this by overriding readablePasteboardTypes and appending NSFontPboardType to the result if it is not present, for appropriate textviews (generally those for which usesFontPanel is YES).

Douglas Davidson
_______________________________________________
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.

References: 
 >pasteFont: is a no-op for plain-text text objects? (From: Daniel Zitter <email@hidden>)

  • Prev by Date: Re: Simple Semi-Transparent View?
  • Next by Date: Re: more on stable sorting...
  • Previous by thread: pasteFont: is a no-op for plain-text text objects?
  • Next by thread: Cheeseman Book - Project Files
  • Index(es):
    • Date
    • Thread