• 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: behind the scenes of -drawInRect:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: behind the scenes of -drawInRect:


  • Subject: Re: behind the scenes of -drawInRect:
  • From: Tommy Nordgren <email@hidden>
  • Date: Sat, 27 May 2006 01:22:14 +0200


On 27 maj 2006, at 01.12, Joshua Scott Emmons wrote:

Take a look at Aki's post on typesetter behavior.

So looking at Aki's post, the problem is that NSLayoutManager is using the NSTypesetterLatestBehavior (NSTypesetterBehavior_10_4, in this case), and the -[NSAttributedString drawInRect:] uses NSTypesetterBehavior_10_2_WithCompatibility.


To sum up, layout == 10.4 but drawInRect == 10.2.

Aki's proposed solution to this is to degrade NSLayoutManager to 10.2, which undoubtedly gives the most consistent performance across all OS X versions. But my app is 10.4-only (it uses CoreData) and is seems a shame to knock myself down to 10.2's typesetting engine if I don't have to.

Is there any way to make -[NSAttributedString drawInRect:] use 10.4's typesetting instead of making NSLayoutManager use 10.2's?


I'm not sure, but maybe suitable options are available to the NSAttributedString method drawWithRect:options:
Many thanks,
-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:
40chello.se


This email sent to email@hidden

------------------------------------- This sig is dedicated to the advancement of Nuclear Power Tommy Nordgren email@hidden



_______________________________________________
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: 
 >behind the scenes of -drawInRect: (From: Joshua Scott Emmons <email@hidden>)
 >Re: behind the scenes of -drawInRect: (From: Douglas Davidson <email@hidden>)
 >Re: behind the scenes of -drawInRect: (From: Joshua Scott Emmons <email@hidden>)

  • Prev by Date: Re: behind the scenes of -drawInRect:
  • Next by Date: Re: behind the scenes of -drawInRect:
  • Previous by thread: Re: behind the scenes of -drawInRect:
  • Next by thread: Tokenfield or textfield inside textview
  • Index(es):
    • Date
    • Thread