[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

-setTarget: and -setAction: of NSImageView

From: Kazunobu Kuriyama
Subject: -setTarget: and -setAction: of NSImageView
Date: Tue, 23 Dec 2003 04:42:23 +0900
User-agent: Mozilla/5.0 (X11; U; Linux i686; ja-JP; rv:1.4) Gecko/20030624 Netscape/7.1


Because NSImageView is a subclass of NSControl, I though it accepts
-setAction: and -setTarget: methods.

On the other hand, the current implementation of NSImageView exploits
NSImageCell, a subclass of NSCell. By the specification of NSCell,
-setAction: and -setTarget must raise the exception

Therefore, contrary to my expectation (as well as everybody's, I hope),
NSImageView doesn't accept both of two methods.

Could anyone fix it shortly (after CVS is up)? Or, does anyone know
how to get around it? (I tried to use category, but in vain.)

Thank you.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]