• 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: OS X: how to create a text label?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OS X: how to create a text label?


  • Subject: Re: OS X: how to create a text label?
  • From: Artemiy Pavlov <email@hidden>
  • Date: Wed, 8 Dec 2010 22:28:35 +0200

Thanks, Wim!

On 8 Dec 2010, at 21:43, Wim Lewis wrote:


On 8 Dec 2010, at 11:15 AM, Artemiy Pavlov wrote:
I would like to add a simple text label to my Cocoa UI on OS X, programaticaly. It's just a static text label that'll be there unchanged, that has a certain font, size and color. What is the best way to do this?

Use an NSTextField, and set it to not be editable and have no border. (A lot of the setup methods you might want to use are defined on its superclass, NSControl.)




_______________________________________________

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: 
 >OS X: how to create a text label? (From: Artemiy Pavlov <email@hidden>)
 >Re: OS X: how to create a text label? (From: Wim Lewis <email@hidden>)

  • Prev by Date: Re: OS X: how to create a text label?
  • Next by Date: iOS Pages app UI Widget question.
  • Previous by thread: Re: OS X: how to create a text label?
  • Next by thread: iOS Pages app UI Widget question.
  • Index(es):
    • Date
    • Thread