On Aug 17, 2009, at 10:32 PM, Graham Cox wrote:

It seems strange because on the face of it -menuForEvent: is meant, as far as I can see, merely to return a property - the view's contextual menu (the event providing the context). What is done with the menu as far as displaying it, is down to the client code that invokes this. (Though what it would do other than pop it up and track it, I couldn't say).

It is surely not meant to implement behaviours such as visual feedback (is this done here by any other class?).


Agreed. If this *is* the case (the highlighting is done from the - menuForEvent: method), this is very surprising to me. I would consider this - and forgive the bluntness - an ugly mess.

It's akin to asking the AddressBook person view for its "-lastName" field contents and having it highlight the field before giving up its secrets. MVC? Feh! We don't need no MVC! ;-)

--
I.S.




_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to