An account of code-switching should be a direct consequence of an understanding of representation and processing in the individual mind, rather than a separate domain of its own. In the absence of such an account, most studies have developed hypotheses strictly within a specific research domain. This paper seeks to apply to code-switching a reasonably well-developed account of the multilingual mind, the MOGUL framework, within which more specific accounts can be developed. After briefly summarizing the framework, we describe representation and processing as realized in MOGUL, focusing on aspects having particular relevance to code-switching, including social factors involved in switching but as seen in terms of their place in a cognitive system. We then show how a promising approach to code-switching can be derived from this general framework. Some specific examples of code-switching are analyzed, though the primary goal is to show the merits of a broader perspective.