No, it doesn't chunk based on word boundary. 

It could callback in chunks in order to prevent allocating too large buffer, 
though. 

So, you should be prepare to insert whatever requested. 

Aki From iPhone


On 2010/08/07, at 9:14, vincent habchi <vi...@macports.org> wrote:

> Hi there,
> 
> There is little documentation available on the working of NSGlyphGenerator 
> (or concrete subclasses thereof). If there is any guru lurking around, I'd 
> like to know if it is expected that, upon sending a string for glyph 
> generation through
> -(void)generateGlyphsForGlyphStorage: desiredNumberOfCharacters: glyphIndex: 
> characterIndex:, the callback (-(void)insertGlyphs: length: 
> forStartingGlyphAtIndex: characterIndex:) gets invoked more than once with 
> chunks of the original string corresponding to words or spaces (that is to 
> say, the shared NSGlyphGenerator splits the string into words and spaces)?
> 
> Actually, that's more than fine for my purpose, but, precisely, it seems even 
> too fine to be true, so I'm a bit cautious! :)
> 
> Thanks!
> Vincent_______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/aki%40apple.com
> 
> This email sent to a...@apple.com
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to