• 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: dynamic glyph/character advancement
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dynamic glyph/character advancement


  • Subject: Re: dynamic glyph/character advancement
  • From: Aki Inoue <email@hidden>
  • Date: Mon, 10 Apr 2006 10:58:02 -0700

Dominik,

if ([super respondsToSelector:@selector (boundingBoxForControlGlyphAtIndex:forTextContainer:proposedLineFragme nt:glyphPosition:characterIndex:)]) {

This does not check if the superclass responds to - boundingBoxForControlGlyphAtIndex:... method. You're invoking the super implementation of respondsToSelector: and it's checking the receiver's implementation availability.


You doesn't need to check the super implementation, you can return zero rect if the character is not what you're interested.

Aki
_______________________________________________
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


  • Follow-Ups:
    • Re: dynamic glyph/character advancement
      • From: Dominik Wagner <email@hidden>
References: 
 >Re: dynamic glyph/character advancement (From: Dominik Wagner <email@hidden>)

  • Prev by Date: Re: Size limit of NSData or NSFileHandle?
  • Next by Date: Distributed Objects - setting protocol crashing GCC 4.0
  • Previous by thread: Re: dynamic glyph/character advancement
  • Next by thread: Re: dynamic glyph/character advancement
  • Index(es):
    • Date
    • Thread