Re: NSTextField subclass not working properly

2012-01-02 Thread Seth Willits
On Jan 2, 2012, at 10:35 PM, Devarshi Kulshreshtha wrote: > First Problem: When a text field is selected, it is showing overlapping > white edges over round corners as shown in below image: That's the field editor drawing its background. Tweak it in setUpFieldEditorAttributes: -- Seth Willits

NSTextField subclass not working properly

2012-01-02 Thread Devarshi Kulshreshtha
Hi all, I am using below code to subclass NSTextField- - (void)drawRect:(NSRect)dirtyRect { // black outline NSRect blackOutlineFrame = NSMakeRect(0.0, 0.0, [self bounds].size.width, [self bounds].size.height-1.0); NSGradient *gradient = nil; if ([NSApp isActive]) {