Re: A Tab after 4 SPACEs
Re: A Tab after 4 SPACEs
- Subject: Re: A Tab after 4 SPACEs
- From: Uli Kusterer <email@hidden>
- Date: Fri, 28 Mar 2008 12:51:39 +0100
On 28.03.2008, at 10:16, Gerriet M. Denkmann wrote:
The documentation says: "Returns the named encoded glyph, or –1 if
the receiver contains no such glyph."
Returning a negative number seems to be kind of difficult as NSGlyph
is defined as unsigned int.
Tests with "sp8 f8 s83 3ace" (assumed to be name of no glyph in this
universe) returns either 0x0 (NSNullGlyph) or 0xffff, depending on
font.
Well, -1 is essentially 0xffff when you typecast a two-byte integer,
so that's the result I would have expected.
Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden