• 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: Trouble editing a custom NSCell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trouble editing a custom NSCell


  • Subject: Re: Trouble editing a custom NSCell
  • From: "Louis C. Sacha" <email@hidden>
  • Date: Wed, 24 Nov 2004 04:41:42 -0800

Hello...

What type of control / view is managing the cell?

It is probably using selectWithFrame:inView:editor:delegate:start:length: to begin editing instead...

Hope that helps,

	Louis

Hi all,

I've subclassed NSCell so that it can display an icon and two lines of text. The first line of text is editable by double-clicking on the cell.

Right now that works fine, but my problem is the appearance of the cell while editing. I'd like to change the size and position of the text editor so that it's displayed exactely on top of the first line of text. So I've tried to override the - (void)editWithFrame:inView:editor:delegate:event: method in order to change the rectangle of the NSText.

Unfortunately, this method is never called when the cell is edited.
Did I miss anything ?

Thanks
Jérome

_______________________________________________ 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: 
 >Trouble editing a custom NSCell (From: Jerome Foucher <email@hidden>)

  • Prev by Date: Resizing NSimage
  • Next by Date: Redirect web links to Safari
  • Previous by thread: Trouble editing a custom NSCell
  • Next by thread: Re: setNeedsRedrawInRect:
  • Index(es):
    • Date
    • Thread