• 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
validateMenuItem causes errors with table view?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

validateMenuItem causes errors with table view?


  • Subject: validateMenuItem causes errors with table view?
  • From: Andrew Merenbach <email@hidden>
  • Date: Wed, 12 Feb 2003 21:24:14 -0800

For some reason, validateMenuItem: in a table view has ceased to function, and causes errors, always in pairs; I've tried creating a new table view subclass, overriding nothing except the validateMenuItem: method, and receive the same result.

I call [super validateMenuItem:theItem] in this MyTableView subclass, and that seems to cause trouble (although I've never had this trouble before):

2003-02-12 21:10:44.209 NamePicker[1625] *** -[MyTableView validateMenuItem:]: selector not recognized

I have created no subclasses, and my table view responds to validateMenuItem:, so there's no reason why validateMenuItem: should trip it up. My example subclass overrides only one method--validateMenuItem:--and it's declared in the header. I've no idea why the receiver should be MyTableView, rather than its superclass--NSTableView.

Oddly enough, simply returning YES or NO from within validateMenuItem: functions perfectly, but is not the behavior I desire.

Might someone shed some light on this?

Take care,
Andrew
_______________________________________________
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: layout management and cocoa
  • Next by Date: reestablishing tracking rectangles.
  • Previous by thread: Text field cell plus menu?
  • Next by thread: reestablishing tracking rectangles.
  • Index(es):
    • Date
    • Thread