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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com