• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSInternalInconsistencyException
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSInternalInconsistencyException (From: koko <email@hidden>)

  • Prev by Date: Re: [myWindowController window] returns null !
  • Next by Date: Re: IBOutlet to different classes, conditional build
  • Previous by thread: NSInternalInconsistencyException
  • Next by thread: [Meet] LA Cocoa Heads starts iOS book study March 10th
  • Index(es):
    • Date
    • Thread