• 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
[NSString drawInRect:withAttributes:] broken too, uh?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[NSString drawInRect:withAttributes:] broken too, uh?


  • Subject: [NSString drawInRect:withAttributes:] broken too, uh?
  • From: Stéphane Sudre <email@hidden>
  • Date: Thu, 28 Aug 2003 17:45:24 +0200

Is it my broken eyes or when you're using [NSString drawInRect:withAttributes:], you can't draw a string that is partially hidden at its top by the view frame?

Let's say you have this:

+---------------+
+-------+---------------+---+
| |stringRect | |
| +---------------+ |
|viewRect |
+---------------------------+

The issue is that the string will be stick to the bottom of viewRect and not partially hidden. This is a strange "feature" in case it's a feature since this is not occurring when the string is partially on the left, right or bottom of the view.

If you're using drawAtPoint:withAttributes, this is "working" with the restriction of the string being drawn too short with some Font/Size couples.

Would there be any workaround for bugs on these methods?
_______________________________________________
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.

  • Prev by Date: Re: Sorry, should have said iconcomposer
  • Next by Date: Re: pcap programming
  • Previous by thread: Re: verify user input
  • Next by thread: Tcp/ip
  • Index(es):
    • Date
    • Thread