Hi, I want to change the color and font of a label. I used the below method. I get no errors but it is not updating the Label with the required changes,
- (NSAttributedString *)setLabelFont:(NSString *)str { NSColor *txtColor = [NSColor redColor]; NSFont *txtFont = [NSFont boldSystemFontOfSize:12]; NSDictionary *dict = [NSDictionary dictionaryWithObjectsAndKeys:txtFont, NSFontAttributeName, txtColor, NSForegroundColorAttributeName, nil]; NSAttributedString *atted = [[[NSAttributedString alloc] initWithString:str attributes:dict] autorelease]; return atted; } [labelStr setAttributedStringValue:[self setLabelFont:@"Checking for updates"]]; -- Regards, Shraddha Karwan _______________________________________________ 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