NSCell does not itself have storage for a target or action, NSActionCell
does.  You can still ask for a target or action, but you'll always get nil
and NULL.  It's basically drawing-only.

- (id)target

{

    return nil;

}

- (SEL)action

{

    return (SEL)0;

}

So, I suppose the question is why you are trying to set a target on an
NSImageCell.  It's not going to do anything with it.

-Ken

On Wed, Feb 23, 2011 at 3:16 PM, koko <k...@highrolls.net> wrote:

> I added a 4 x 1 Matrix of NSImageViews which became NSImageCells to a view.
>  I Set the class of this Matrix to a custom class.
>
> Upon build and run I get:
>
> NSInternalInconsistencyException 'Stub implementation of -setTarget by
> NSCell does nothing.'
>
> I am not sure what I should do ...
>
> How would I set a cell ?
>
> Should I subclass NSImageCell and implement some sort of -setTarget?
>
> As always any suggestion or direction is welcome!
>
> -koko
>
> _______________________________________________
>
> 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/kenferry%40gmail.com
>
> This email sent to kenfe...@gmail.com
>
_______________________________________________

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