The mind does not create the object [O] of reality (e.g., the candy bar), the mind creates a mental image [O-M] where the object and the mind unite to form a dialectic electro-chemical wavefunction within neurons. Thus exists what can be called a veiled reality of [O] within the mind. In this philosophy (called Objectivism:
http://en.wikipedia.org/wiki/Objectivist_philosophy) both [O] and [M] are real, that is they exist as things independent until united via observation (e.g., perception). Thus we can never "know" pure [O] as reality, we can only "know" the veiled reality of the image [O+M], but the pure reality of both [O] and [M] as objects that exists holds true. Now, do not be confused by those that would claim this is an example of naive reality--this is false. Naive reality holds that pure reality is the image [O+M] and that neither [O] nor [M] are real as independent objects, e.g., that the real emerges from the unreal, naive indeed.