• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSTextField stable text while toggling bezel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >NSTextField stable text while toggling bezel (From: Sebastian Morsch <email@hidden>)
 >Re: NSTextField stable text while toggling bezel (From: Jim Correia <email@hidden>)

  • Prev by Date: Re: Trouble with sheets...
  • Next by Date: Re: Trouble with sheets...
  • Previous by thread: Re: NSTextField stable text while toggling bezel
  • Next by thread: future proof icon sizes?
  • Index(es):
    • Date
    • Thread