• 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
Remove field editor's cursor region?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Remove field editor's cursor region?


  • Subject: Remove field editor's cursor region?
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Sun, 18 Apr 2004 14:30:19 +0200

Hi,

I'm doing a class that displays cells and I just added support for inline editing to it. It all works swell, however every time I finish editing, the field editor seems to be leaving its mouse cursor region there. After editing three cells, my view is a minefield of I-Beam cursor regions.

I tried doing a -setEditable:NO on the cell, I tried calling NSWindow's -endEditingFor: in addition to NSCell's -endEditing:, I tried -invalidateXursorRectsForView:, -resetCursorRects, I tried explicity making self the first responder, I tried calling -setHidden: on the field editor before endEditing:, and I tried various permutations of combinations of these.

Anybody know what I'm missing?

In case that's useful info, here is how I start editing for a cell:

1) -makeFirstResponder: self and, if that returns NO, -endEditingFor: NIL.
2) I set up my cell
3) -fieldEditor: YES forObject: cell
4) then I call -setUpFieldEditorAttributes: on my cell with the field editor #3 returned as the parameter
5) -selectWithFrame: inView: editor: delegate: start: length:
6) -editWithFrame: inView: editor: delegate: self fieldEditor: event: (sent to the cell)

Any clues would make me very happy. Really.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: Re: NSObjectController and NSDefaultsController Binding?
  • Next by Date: Re: Getting the GMT time
  • Previous by thread: Re: cocoa-dev digest, Vol 2 #4031 - 1 msg
  • Next by thread: Re: Any new/updated Cocoa books soon?
  • Index(es):
    • Date
    • Thread