Display NSTextView as Label - without InterfaceBuilder
Display NSTextView as Label - without InterfaceBuilder
- Subject: Display NSTextView as Label - without InterfaceBuilder
- From: Manuel <email@hidden>
- Date: Mon, 13 Apr 2009 08:17:53 +0200
Hello
I would like to draw an NSTextField to an NSView but it should be
displayed as a label.
In InterfaceBuilder it is no problem but how can I do that in
sourcecode?
With this code it doesn't work. It is still displayed as a Textfield.
NSTextField *label = [[NSTextField alloc] init];
[label setEditable:FALSE];
[label setSelectable:FALSE];
[label setDrawsBackground:NO];
[myView addSubview:label];
Help would be nice...
Thanks...Manu
_______________________________________________
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