• 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
Setting up multiple Dependent Keys
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Setting up multiple Dependent Keys


  • Subject: Setting up multiple Dependent Keys
  • From: "J. Scott Anderson" <email@hidden>
  • Date: Thu, 18 Nov 2004 23:25:01 -0600

I am struggling with an issue in Cocoa Bindings. Example code that obviously works fine:

+ (void)initialize
{
[Controller setKeys:
[NSArray arrayWithObjects:@"extendedPrice", @"extendedCost", nil]
triggerChangeNotificationsForDependentKey:@"profit"];
}

If I also want to have additional fields (Dependent Keys I would think), then how do I do it. I tried making multiple versions of the above code but with different Dependent Keys and with changes to the Keys. That results in error messages telling me that I have redefined the "initialize" method and that I have duplicate "initialize" methods among other errors. I also tried adding in additional Keys and/or adding in additional Dependent Keys–nothing works for me.

I am obviously on the wrong path with this. Can anyone set me straight?
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Setting up multiple Dependent Keys
      • From: Sherm Pendley <email@hidden>
    • Re: Setting up multiple Dependent Keys
      • From: Keith Renz <email@hidden>
  • Prev by Date: Re: Cursor rects, cursors and dragging
  • Next by Date: Re: Newbie question: constants
  • Previous by thread: Re: Newbie question: constants
  • Next by thread: Re: Setting up multiple Dependent Keys
  • Index(es):
    • Date
    • Thread