• 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: NSAttributedString drawing and NSText drawing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSAttributedString drawing and NSText drawing


  • Subject: Re: NSAttributedString drawing and NSText drawing
  • From: Joshua Scott Emmons <email@hidden>
  • Date: Wed, 31 May 2006 19:11:05 -0500

Thanks very much, fiddling with the typesetter behavior completely
solved the problem, and my project is now back on track.

...

how did you find out about this,
I mean where should I go read so that I do not run into issues like
this again ?

I came to it only by asking pretty much the same question you did on the list, and being told to look for a previous post by Aki about typesetting behavior. Searching the list, I eventually came to a different post that also referred to Aki's letter AND gave the full subject of the email: "Text height for printing (fixed width)". Only then was I able to use search.lists.apple.com to find what I was looking for (http://tinyurl.com/syxgy).


For whatever reason, this problem is a hard one to google for. Phrases like "NSTextView height" or "wrong height of string" don't help much. Worse, while typesetter behavior is mentioned in the Reference Library (http://tinyurl.com/q8t87), I don't believe the docs talk anywhere about how some methods use a compatibility behavior while others use the most recent behavior. Nor do they mention that the behaviors should not be mixed. Nor do they do anything to say WHICH behaviors are used, by default, by which objects. (if I'm mistaken about any of this, I hope someone will correct me)

So, to answer your question, I don't think there's a way you could have known this particular piece of Cocoa text system trivia without having stumbled across it here. I believe this serves to underscore why this list is such a great resource. At the same time it is probably worth filing a documentation enhancement request over.


Cheers, -Joshua Emmons _______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Re: NSAttributedString drawing and NSText drawing (From: email@hidden)

  • Prev by Date: Re: Style Question: accessing methods in the Document
  • Next by Date: [WWDC] Food sucks, complain here...
  • Previous by thread: Re: NSAttributedString drawing and NSText drawing
  • Next by thread: RE: Installer Check to see if it's an Intel Mac
  • Index(es):
    • Date
    • Thread