Nina's pigs scattered while she was doing something else (2,7)
I believe the answer is:
in passing
'while she was doing something else' is the definition.
I can't judge whether this definition defines the answer.
'nina's pigs scattered' is the wordplay.
'scattered' indicates an anagram.
'ninas'+'pigs'='ninaspigs'
'ninaspigs' anagrammed gives 'IN PASSING'.
Can you help me to learn more?
(Other definitions for in passing that I've seen before include "Where footballer may show skill" , "by the way" , "casually" .)