• 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's subclass...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextField's subclass...


  • Subject: Re: NSTextField's subclass...
  • From: Kyle Sluder <email@hidden>
  • Date: Sat, 14 Feb 2009 17:14:56 -0500

On Sat, Feb 14, 2009 at 2:02 PM, Jean-Nicolas Jolivet
<email@hidden> wrote:
> I'm working on an NSTextField subclass (basically I need to change the
> TextField's appearance so it fits with an HUD style window)

You shouldn't need to re-implement the text drawing.  Just set the
appropriate attributes and let NSTextField's implementation deal with
it.  Have you tried only using a custom NSTextFieldCell and overriding
-drawWithFrame:inView: instead?  Should be a lot less work.

--Kyle Sluder
_______________________________________________

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

References: 
 >NSTextField's subclass... (From: Jean-Nicolas Jolivet <email@hidden>)

  • Prev by Date: NSRulerView custom labels
  • Next by Date: Re: Can anyone suggest a way to do this?
  • Previous by thread: NSTextField's subclass...
  • Next by thread: NSRulerView custom labels
  • Index(es):
    • Date
    • Thread