• 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: ADC Core Data article
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ADC Core Data article


  • Subject: Re: ADC Core Data article
  • From: Marcel Weiher <email@hidden>
  • Date: Sat, 9 Apr 2005 14:03:36 +0200


On 9 Apr 2005, at 10:37, Byron Ellis wrote:


On Apr 9, 2005, at 12:44 AM, Marcel Weiher wrote:



Wow! I must have missed that one. How do I express [matrix matrixTranslatedBy:2.3 y:[slider floatValue]] in KVC? Or how about: [[array1 select] isEqual:[array2 each]];



[matTranslator setValue:matrix forKey:@"matrix"];
[matTranslator setValue:[NSNumber numberWithFloat:2.3] forKey:@"x"];
[matTranslator setValue;[NSNumber numberWithFloat:[slider floatValue] forKey:@"y"];


//alternately
//[matTranslator bind:@"y" to:slider withKeyPath:@"value" options:nil];


[matTranslator valueForKey:@"translated"];

I don't see how this shows that KVC is isomorphic to message sending, as it assumes the existence of an additional element that is not part of KVC, at least I didn't notice a MatTranslator class as part of KVC. I could have missed it, though... ;-)


Marcel


_______________________________________________ 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: ADC Core Data article
      • From: Charlton Wilbur <email@hidden>
References: 
 >Re: ADC Core Data article (From: Philippe Mougin <email@hidden>)
 >Re: ADC Core Data article (From: Shawn Erickson <email@hidden>)
 >Re: ADC Core Data article (From: Charlton Wilbur <email@hidden>)
 >Re: ADC Core Data article (From: Marcel Weiher <email@hidden>)
 >Re: ADC Core Data article (From: Byron Ellis <email@hidden>)

  • Prev by Date: A couple of annoying Binding problems
  • Next by Date: Why would IBOutlet NSPanel *aWindow be nil?
  • Previous by thread: Re: ADC Core Data article
  • Next by thread: Re: ADC Core Data article
  • Index(es):
    • Date
    • Thread