Sometimes you're in a situation where you need to get ahold of a view and it's not convenient to set up stuff in IB (like the object needing to get the view isn't in the nib file with the window). You can uses NSView's viewWithTag: to find it.
NSView
viewWithTag: