Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dynamic glyph/character advancement



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.