Cocoa conversions

  atomSelectTools = new selectAtomChoices
  
  atomSelectTools.show       // atomSelectTools not nil here
  atomSelectTools.init (self, currentMol.atom(atomIndex).symbol,  currentMol.atom(atomIndex).group,atomIndex )  // atomSelectTools now NIL 

i’m sure my problems must be in the order of initializations
but why does it "go away " ?

thanks for any insight

Based on this code there has to be something else setting atomSelectTools nil

Couldn’t you do the init command in the constructor of the class?

[code]atomSelectTools = new selectAtomChoices(self, currentMol.atom(atomIndex).symbol, currentMol.atom(atomIndex).group,atomIndex )

atomSelectTools.show[/code]

FOUND IT, thanks !

Indeed something else was setting it to nil,
more work needed, but the calling window had a deactivate routine
closing these other windows… must fire in a different order than Carbon

thanks again