4
PourquoiInstanciation d'un nouvel objet dans le bloc commutateur - pourquoi échoue-t-il?
switch ([document currentTool]) {
case DrawLine:
NSBezierPath * testPath = [[NSBezierPath alloc]init];
//...rest of code that uses testPath....
résultat dans
error:syntax error before "*" token
pour TestPath?
Merci Graeme! Shoulda a pensé cela. – Joe