Re: NSInternalInconsistencyException
Re: NSInternalInconsistencyException
- Subject: Re: NSInternalInconsistencyException
- From: Ken Ferry <email@hidden>
- Date: Wed, 23 Feb 2011 22:03:04 -0800
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 <email@hidden> 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 (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
>
_______________________________________________
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