• 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: Repositioning an NSTextFieldCell?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Repositioning an NSTextFieldCell?


  • Subject: Re: Repositioning an NSTextFieldCell?
  • From: Daniel Jalkut <email@hidden>
  • Date: Sat, 25 Nov 2006 18:49:55 -0500

I guess I praised the example prematurely - I didn't try it out, but liked how simple it looked. If it doesn't work right, though... :)

On Nov 25, 2006, at 6:46 PM, Matt Neuburg wrote:

The actually implementation is terrible; it makes a whole slew of
unwarranted assumptions about how high the text is and how many lines it
might consist of (and even when it's a single line, on my machine it cuts
off the descenders). Furthermore, if this cell is being used in an
NSTextField that draws its background and you hide and then show that text
field, much of the field fails to draw itself. However, it does illustrate
the general principle that I was getting at before: in addition to
editWithFrame and selectWithFrame, it overrides drawInteriorWithFrame. m.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


References: 
 >Re: Repositioning an NSTextFieldCell? (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: Repositioning an NSTextFieldCell?
  • Next by Date: Re: Re: NetSocket and parse line by line
  • Previous by thread: Re: Repositioning an NSTextFieldCell?
  • Next by thread: How can I copy/duplicate an existing NSTextField?
  • Index(es):
    • Date
    • Thread