• 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
NSTextFieldCell subclass won't edit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTextFieldCell subclass won't edit


  • Subject: NSTextFieldCell subclass won't edit
  • From: Brian Webster <email@hidden>
  • Date: Wed, 16 Oct 2002 16:34:20 -0500

I've implemented a subclass of NSTextFieldCell for doing a little additional drawing alongside the text in the cell, and I'm currently using the cell in one of the columns of a table view. However, when I double click on the cell to edit its contents, nothing happens.

I've only implemented the drawWithFrame:inView: method in my subclass (which just calls super and then draws an image), along with one simple accessor for a boolean flag. I also implemented the NSCopying protocol, but that didn't change anything. My tableView:shouldEditTableColumn:row: method is getting called correctly and returning YES. If I change the cell back to a plain NSTextFieldCell, everything works correctly. Putting a breakpoint on -[NSCell editWithFrame:inView:editor:delegate:event:] reveals that this method never gets called.

Anyone have any ideas as to why this isn't working?

--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
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: Declarations near usage
  • Next by Date: Re: Declarations near usage
  • Previous by thread: Re: Cocoa and PortAudio!
  • Next by thread: Mouse Event Handling
  • Index(es):
    • Date
    • Thread