• 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: Debugging Bindings in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Debugging Bindings in Cocoa


  • Subject: Re: Debugging Bindings in Cocoa
  • From: Scott Anguish <email@hidden>
  • Date: Tue, 17 Feb 2004 12:07:45 -0500

On Feb 17, 2004, at 9:06 AM, Gabriele de Simone wrote:

Often times, when debugging Bindings-code in Cocoa (adding & removing items) I get this message printed out in my console:

-[_NSStateMarker boolValue]: selector not recognized

It usually takes me a while to find out what the problem is, because the above message is quite abstract. What does it mean, but more importantly are there better ways to extract error conditions from Cocoa?


In general, this message means that you're attempting to send the boolValue method to something that doesn't implement it. This is more indicative of a program error (that is, a code issue) rather than an error condition that the user might encounter.

In this particular case, it looks like you've bound to selection on something, and when there is a multiple selection you're asking the boolean value, when if there is a multiple selection you won't get all the objects, you'll get a Marker instead.

it'd be easier to determine the problem if you showed us some code.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Debugging Bindings in Cocoa
      • From: Gabriele de Simone <email@hidden>
References: 
 >Debugging Bindings in Cocoa (From: Gabriele de Simone <email@hidden>)

  • Prev by Date: Re: NSRunAlertPanel-not working?
  • Next by Date: Re: NSRunAlertPanel-not working?
  • Previous by thread: Debugging Bindings in Cocoa
  • Next by thread: Re: Debugging Bindings in Cocoa
  • Index(es):
    • Date
    • Thread