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

Re: Setting up multiple Dependent Keys


  • Subject: Re: Setting up multiple Dependent Keys
  • From: Keith Renz <email@hidden>
  • Date: Fri, 19 Nov 2004 00:39:33 -0500

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"];
}


To add more keys, add more objects to the array:

[Controller setKeys:
[NSArray arrayWithObjects:@"extendedPrice", @"extendedCost", @"anotherKey", @"yetAnotherKey", nil]
triggerChangeNotificationsForDependentKey:@"profit"];

You can't have duplicate +initialize (or any other) methods for any class, which is what you were trying to do.

Keith
 _______________________________________________
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

References: 
 >Setting up multiple Dependent Keys (From: "J. Scott Anderson" <email@hidden>)

  • Prev by Date: Re: Mail plugins for modifying headers on outgoing messages
  • Next by Date: Re: Setting up multiple Dependent Keys
  • Previous by thread: Setting up multiple Dependent Keys
  • Next by thread: Re: Setting up multiple Dependent Keys
  • Index(es):
    • Date
    • Thread