• 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: NSTextView border shift
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextView border shift


  • Subject: Re: NSTextView border shift
  • From: Matt Neuburg <email@hidden>
  • Date: Thu, 22 Aug 2002 21:15:56 -0700

On Thu, 22 Aug 2002 15:12:20 -0500, "Guy Umbright" <email@hidden>
said:

>
>I have an NSTextView in a dialog I want in one context to be editable, and in
>another, simply display (no border or background, non-selectable).
>
>I can easily switch between the states programatically, the problem is that
>the drawing of the displayed text is shifted up to the left when the view is
>setup for display and gets out of line with its label. This is apparently
>because removing the border affects the field size.
>
>Is there a way to prevent this?

Do you mean NSTextField? - I do a lot of toggling between editable and
non-editable text fields, and I find this behavior annoying too. One way to
make it less noticeable is to to move the field as you change its other
properties. m.
--

matt neuburg, phd = email@hidden, http://www.tidbits.com/matt
pantes anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart. http://www.tidbits.com/
_______________________________________________
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: Elaine Lee/SWD/RDC/MII/MICROTEK is out of the office.
  • Next by Date: Can I subclass NSMutableArray?
  • Previous by thread: NSTextView border shift
  • Next by thread: RE: NSTextView border shift
  • Index(es):
    • Date
    • Thread