• 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
checkbox question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

checkbox question


  • Subject: checkbox question
  • From: Michael de Haan <email@hidden>
  • Date: Sat, 22 Aug 2009 16:16:43 -0700

I wonder if someone can just point me in the correct direction. I am at the stage of not really knowing if the error is simply a missed connection, etc or a fundamental misunderstanding.

I have a checkbox, which I wish to bind to an iVar in my model ( which is a windowController).

What I am doing right now is creating an NSButton object in the model, and "assuming" .....probably incorrectly, that by having the correct getters/setters available ( eg state/setState etc) I can bind the view's checkbox title, alternateTitle, status to the NSButton in the model. That is not working for me. ("Cannot create BOOL from object <NSButton: 0x19f6c0> of class NSButton").

Is this my error, or do I need to create an iVar for each of the button elements I wish to bind to?

I have checked the archives, but could not find exactly what I was looking for....but that might be my error in not using the correct key words.


( I will gladly show code, but I suspect the issue is beyond that).

Thanks in advance.
_______________________________________________

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


  • Follow-Ups:
    • Re: checkbox question
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: Best Way to Simulate Keyboard
  • Next by Date: Re: checkbox question
  • Previous by thread: Re: Displaying svg image with WebKit - scaling issues
  • Next by thread: Re: checkbox question
  • Index(es):
    • Date
    • Thread