xcode cocoa: detecting subview