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

binding bool value??


  • Subject: binding bool value??
  • From: Theodore Petrosky <email@hidden>
  • Date: Sun, 25 Mar 2007 06:58:22 -0700 (PDT)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: binding bool value??
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Re: Changing order of views dynamically
  • Next by Date: Re: Progress Sheet on a NSDocument
  • Previous by thread: App launched in Xcode can't gain key and order front
  • Next by thread: Re: binding bool value??
  • Index(es):
    • Date
    • Thread