did you try checking the Allows "Rich Text" field in Interface
Builder for labelStr ?
On Jun 3, 2009, at 1:13 PM, Shraddha Karwan wrote:
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 protected])
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/rajesh%40vangennep.nl
This email sent to [email protected]
_______________________________________________
Cocoa-dev mailing list ([email protected])
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 [email protected]