• 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: binding bool value??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: binding bool value??


  • Subject: Re: binding bool value??
  • From: "I. Savant" <email@hidden>
  • Date: Sun, 25 Mar 2007 12:37:36 -0400


The short answer: yes.

The longer answer: As with all other types of values, your model's boolean value must be KVC compliant, as demonstrated here (under "Commonly Used Accessor Patterns"):

http://developer.apple.com/documentation/Cocoa/Conceptual/ KeyValueCoding/Concepts/AccessorConventions.html

--
I.S.


On Mar 25, 2007, at 9:58 AM, Theodore Petrosky wrote:

I have a custom object that I am binding to my
interface. Of course I am populating this object from
a query to a database. After I query the backend and
assign all my values (some NSStrings, some NSDates) I
use the addObserver..... to watch my ivars for
changes.

This works great except for BOOL values. I have
setters and getters for these BOOLs then I am setting
up the observing the same for NSStrings...

Can I 'observe' BOOLs in my custom object? I am
setting up observing like this:

	[aRow addObserver:self forKeyPath:@"cancreatenewjob"
options:NSKeyValueObservingOptionOld context:NULL];


Help please..

Ted



______________________________________________________________________ ______________
Looking for earth-friendly autos?
Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.
http://autos.yahoo.com/green_center/
_______________________________________________


Cocoa-dev mailing list (email@hidden)

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:
40gmail.com


This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: binding bool value??
      • From: mmalc crawford <email@hidden>
References: 
 >binding bool value?? (From: Theodore Petrosky <email@hidden>)

  • Prev by Date: Re: [SOLVED!] Progress Sheet on a NSDocument
  • Next by Date: Re: [SOLVED!] Progress Sheet on a NSDocument
  • Previous by thread: binding bool value??
  • Next by thread: Re: binding bool value??
  • Index(es):
    • Date
    • Thread