• 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: A Tab after 4 SPACEs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >A Tab after 4 SPACEs (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: A Tab after 4 SPACEs (From: Uli Kusterer <email@hidden>)
 >Re: A Tab after 4 SPACEs (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: A Tab after 4 SPACEs (From: Alastair Houghton <email@hidden>)
 >Re: A Tab after 4 SPACEs (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Cant get Garbage Collection to work
  • Next by Date: Re: setMenuVisible
  • Previous by thread: Re: A Tab after 4 SPACEs
  • Next by thread: Getting other application window reference
  • Index(es):
    • Date
    • Thread