On Sat, Sep 18, 2010 at 7:07 PM, Sherm Pendley <sherm.pend...@gmail.com> wrote:
> On Sat, Sep 18, 2010 at 3:32 AM, Thilo Planz <thilopl...@googlemail.com> 
> wrote:
>
>> Any idea on how I can fix or workaround this issue?
>
> One workaround is to assign a tag to the relevant controls in
> Interface Builder, and compare it like this:
>
>  if ($sender->tag() == $self->{'thisButton'}->tag()) {
>    ...
>  }
>
> Tags are 32-bit values, so this bug doesn't bite them.

Another possibility is to use a bit mask to ignore the additional bytes:

  if ($sender->isEqual($self->{'thisButton'}) & 0xf) {
    ...
  }

sherm--

-- 
Cocoa programming in Perl:
http://camelbones.sourceforge.net

Reply via email to