• 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
NSRect and the origin
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSRect and the origin


  • Subject: NSRect and the origin
  • From: Reza Farhad <email@hidden>
  • Date: Mon, 08 Jul 2002 15:48:32 +0100

I am trying to get the rect of a glyph in NSTextView. I l used the function
below in NSLayoutManager:

- (NSRect)boundingRectForGlyphRange:(NSRange)glyphRange
inTextContainer:(NSTextContainer *)aTextContainer


The function works fine but the origin for the rect appears to be set at the
top/left rather than the standard bottom/left that is used through out
cocoa.

Is this a bug or is there a good explanation for this.

Thanks
Reza
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: NSRect and the origin
      • From: Ondra Cada <email@hidden>
  • Prev by Date: Insertion Point moving with NSTextStorage
  • Next by Date: Re: NSString -> NSNumber with NSString representing a big unsigned long
  • Previous by thread: Insertion Point moving with NSTextStorage
  • Next by thread: Re: NSRect and the origin
  • Index(es):
    • Date
    • Thread