• 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: Change font and text color of label which is a static NSTextField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Change font and text color of label which is a static NSTextField


  • Subject: Re: Change font and text color of label which is a static NSTextField
  • From: Shraddha Karwan <email@hidden>
  • Date: Wed, 3 Jun 2009 16:43:07 +0530

IBOutlet NSTextField *labelStr;

I have linked this labelStr with the Label I created in my Interface
Builder.
I am able to change its attributes using

[labelStr setTextColor:[NSColor redColor]];
[labelStr setFont:[NSFont labelFontOfSize:10]];

But the setAttributedStringValue doesn't seem to work.


What is labelStr, and how are you expecting changing it to affect your
> label?
>
> Also, as a point of style, the "set" prefix should be limited to setters. A
> more appropriate name for this method would be something like
> "stringWithLabelAttributes".
>



--
Regards,
Shraddha Karwan

Success usually comes to those who are too busy to be looking for it.
_______________________________________________

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

  • Follow-Ups:
    • Re: Change font and text color of label which is a static NSTextField
      • From: rajesh <email@hidden>
References: 
 >Change font and text color of label which is a static NSTextField (From: Shraddha Karwan <email@hidden>)
 >Re: Change font and text color of label which is a static NSTextField (From: Andrew Farmer <email@hidden>)

  • Prev by Date: Re: Change font and text color of label which is a static NSTextField
  • Next by Date: Re: Change font and text color of label which is a static NSTextField
  • Previous by thread: Re: Change font and text color of label which is a static NSTextField
  • Next by thread: Re: Change font and text color of label which is a static NSTextField
  • Index(es):
    • Date
    • Thread