Re: Display NSTextView as Label - without InterfaceBuilder

2009-04-12 Thread Graham Cox
On 13/04/2009, at 4:22 PM, Graham Cox wrote: On 13/04/2009, at 4:17 PM, Manuel wrote: With this code it doesn't work. It is still displayed as a Textfield. [label setBordered:NO]; or perhaps: [label setBezeled:NO]; not sure what the difference between a border and a bezel is, but you

Re: Display NSTextView as Label - without InterfaceBuilder

2009-04-12 Thread Graham Cox
On 13/04/2009, at 4:17 PM, Manuel wrote: With this code it doesn't work. It is still displayed as a Textfield. [label setBordered:NO]; --Graham ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or modera

Display NSTextView as Label - without InterfaceBuilder

2009-04-12 Thread Manuel
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]; [la