Re: OS X: how to create a text label?
Re: OS X: how to create a text label?
- Subject: Re: OS X: how to create a text label?
- From: Wim Lewis <email@hidden>
- Date: Wed, 8 Dec 2010 11:43:56 -0800
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