utilisation de la fonction bind: toObject: withKeyPath: options:

aranaudaranaud Membre
05:32 modifié dans API AppKit #1
[controllerPoste bind:@"selectedPoste" toObject:controllerOperation withKeyPath:@"selection.poste" options:nil];


La variable passe correctement de la variable : selection.poste vers la variable : selectedPoste mais pas dans le sens inverse.

controllerPoste & controllerOperation sont des classes NSArrayController.

J'ai essayé :
[controllerPoste bind:@&quot;selectedPoste&quot; toObject:controllerOperation withKeyPath:@&quot;selection.poste&quot; options:nil];<br />[controllerOperation bind:@&quot;selection.poste&quot; toObject:controllerPoste withKeyPath:@&quot;selectedPoste&quot; options:nil];<br />


Mais l'application se bloque. :why?:
Connectez-vous ou Inscrivez-vous pour répondre.