• 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: NSTextField, drawing the text offset to the right in the field
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextField, drawing the text offset to the right in the field


  • Subject: Re: NSTextField, drawing the text offset to the right in the field
  • From: Matt Neuburg <email@hidden>
  • Date: Mon, 28 Sep 2009 20:30:15 -0700
  • Thread-topic: NSTextField, drawing the text offset to the right in the field

On Mon, 28 Sep 2009 19:37:00 -0600, jon <email@hidden> said:
>i've got a textfield defined...
>but i don't want to draw the text that is in the field right up
>against the left boarder of the bounding box of this defined field in
>IB,
>
>I want to start the text like 20 pixels to the right of the left
>boarder  and still have the nicely defined frame of the field in it's
>original place...

What I do is have the textfield replace its cell by a custom cell that
implements drawInteriorWithFrame, such as to inset its frame rect as it
calls super. m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings



_______________________________________________

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

  • Follow-Ups:
    • simpleBrowser example has setCellClass setting a cell to an instance?
      • From: jon <email@hidden>
    • Re: NSTextField, drawing the text offset to the right in the field
      • From: jon <email@hidden>
  • Prev by Date: Crash in +[NSMethodSignature signatureWithObjCTypes:]
  • Next by Date: Re: Crash in +[NSMethodSignature signatureWithObjCTypes:]
  • Previous by thread: Re: Crash in +[NSMethodSignature signatureWithObjCTypes:]
  • Next by thread: Re: NSTextField, drawing the text offset to the right in the field
  • Index(es):
    • Date
    • Thread