Re: NSTextField stable text while toggling bezel
Re: NSTextField stable text while toggling bezel
- Subject: Re: NSTextField stable text while toggling bezel
- From: Sebastian Morsch <email@hidden>
- Date: Sun, 18 Jun 2006 17:08:44 +0200
Am 17.06.2006 um 15:18 schrieb Jim Correia:
On Jun 17, 2006, at 4:27 AM, Sebastian Morsch wrote:
This works quite nicely, but when the textfield is borderless (and
the cell's rect is changed as in the above code) the textfield's
text still jumps back when I *select* it (as in setSelectable:YES)!
It is likely that you'll have to apply your offset in overrides of
the following:
- (void)editWithFrame:(NSRect)aRect inView:(NSView *)controlView
editor:(NSText *)textObj delegate:(id)anObject event:(NSEvent *)
theEvent;
- (void)selectWithFrame:(NSRect)aRect inView:(NSView *)controlView
editor:(NSText *)textObj delegate:(id)anObject start:(int)selStart
length:(int)selLength;
Jim
Dear Jim!
It works just fine. editWithFrame: is actually called before the
drawInteriorWithFrame: method, so I just copied the cell-rectangle-
shifting-code into overrides of editWithFrame: and selectWithFrame:.
Thank you very much for helping me out so quickly. I really
appreciate it a lot!
Sebastian
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden