After switching to Xcode 3.0, I suddenly had problem with my application that worked with the older version of Xcode.
In my “will open” handler, I have these code snippets:
on will open theObject try set objectname to name of theObject as Unicode text --no problem reading codes in window "main" if objectname is"main"then tell window"main" --codes inside this tell block are read perfectly; no problem end tell end if --problem entering and reading the codes in this "if-end if" block if objectname is "genPrefs" then --display dialog "I am inside this if block" (Note: this line is not even read at all) tell window "genPrefs" --it follows that the codes inside this tell block aren't read either end tell end if end try end will open
Is there any particular reason why the codes in the second “if-end if” block above can’t be accessed? Note: The object “genPrefs” is a
preference window that contains tab view and tab view items but the most immediate problem obviously is reading the first line (display
dialog) in the block. I put that line simply for test.
Would appreciate any lead on the above problem.