• 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: Drawing text?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drawing text?


  • Subject: Re: Drawing text?
  • From: Stéphane Sudre <email@hidden>
  • Date: Tue, 9 Jul 2002 11:23:36 +0200

On Tuesday, July 9, 2002, at 03:31 AM, Timothy J. Wood wrote:

The simplest way is to use IB and just put a NSTextField where you want and than call -setStringValue: on it. Another alternative is to use the methods in <AppKit/NSStringDrawing.h>. There are various other alternatives with using the window's fieldEditor, using a NSTextFieldCell, etc, but the first two are certainly the easiest.

The NSStringDrawing method have one bug IIRC, you can't draw a string with a part of it hidden by the left boundary of the screen.
_______________________________________________
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.
References: 
 >Re: Drawing text? (From: "Timothy J. Wood" <email@hidden>)

  • Prev by Date: Re: Mutable class problems
  • Next by Date: Re: Are NSScanners deprecated?
  • Previous by thread: Re: Drawing text?
  • Next by thread: Re: OT: Categories and alloc.
  • Index(es):
    • Date
    • Thread