• 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: Why does NSTableView stop responding to validateMenuItem: ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why does NSTableView stop responding to validateMenuItem: ?


  • Subject: Re: Why does NSTableView stop responding to validateMenuItem: ?
  • From: Doug Knowles <email@hidden>
  • Date: Thu, 29 Jan 2009 15:37:19 -0500

Thanks for the response, but...

As I understand it, NSMenuValidation is an informal protocol and doesn't
have to be declared as implemented; in fact, I can't find a class that does.
Maybe I should lose my Obj-C license for asking, but isn't it sufficient
that NSObject declares and implements validateMenuItem: to prevent the
NSTableView class from throwing an unrecognized selector exception?

And why is the exception only thrown infrequently (and persistently once it
starts), when it's normally successfully invoked every time a click on the
respective menu?

I'm inclined to suspect a mangled object or class descriptor (since I do
have C++ code linked into my app); I am doubtful of that diagnosis only
because the object & class seem otherwise intact when the problem is
occurring.

Thanks,
Doug K;

On Thu, Jan 29, 2009 at 10:50 AM, Andy Lee <email@hidden> wrote:

> On Jan 29, 2009, at 10:41 AM, email@hidden wrote:
>
>> Using the debugger, I've sent respondsToSelector: messages to it with
>> selectors of various methods an NSTableView should respond to, and the only
>> response that comes back wrong is validateMenuItem:
>>
>
> NSTableView does not implement the NSMenuValidation protocol, thought it
> does implement NSUserInterfaceValidations.
>
> --Andy
>
>
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Why does NSTableView stop responding to validateMenuItem: ?
      • From: Jason Foreman <email@hidden>
    • Re: Why does NSTableView stop responding to validateMenuItem: ?
      • From: Andy Lee <email@hidden>
References: 
 >Why does NSTableView stop responding to validateMenuItem: ? (From: email@hidden)
 >Re: Why does NSTableView stop responding to validateMenuItem: ? (From: Andy Lee <email@hidden>)

  • Prev by Date: Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how?
  • Next by Date: Re: Sub-pixel font smoothing with CGBitmapContext
  • Previous by thread: Re: Why does NSTableView stop responding to validateMenuItem: ?
  • Next by thread: Re: Why does NSTableView stop responding to validateMenuItem: ?
  • Index(es):
    • Date
    • Thread