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 (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 [EMAIL PROTECTED]