• 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: Dominik Wagner <email@hidden>
  • Date: Mon, 10 Apr 2006 21:31:03 +0200

Aki,

twofold: how do i check if my superclass responds to a selector?

second: I already ignored the fact that I can't call the superclass and added some advancement via a the boundingsBox... method. Which got called but didn't display any change. For more detail look into my previous posting.

thanks,
  dominik
On 10.04.2006, at 19:58, Aki Inoue wrote:

Dominik,

if ([super respondsToSelector:@selector (boundingBoxForControlGlyphAtIndex:forTextContainer:proposedLineFragm ent: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

-- Dominik Wagner Mail: email@hidden TheCodingMonkeys http://www.codingmonkeys.de/ Blog - DasGenie: !Scrap http://scrap.dasgenie.com/

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: dynamic glyph/character advancement (From: Dominik Wagner <email@hidden>)
 >Re: dynamic glyph/character advancement (From: Aki Inoue <email@hidden>)

  • Prev by Date: How to grab the Scroller of a WebView?
  • Next by Date: Re: of nibs and top level objects
  • Previous by thread: Re: dynamic glyph/character advancement
  • Next by thread: Beginner with Objective-C was Re: scanf...?
  • Index(es):
    • Date
    • Thread