Here is what I want to do... I want to grab a window that was created in my program (Cocoa) and manipulate it. The only hitch is that I want to grab the window by it's text caption, and without any knowledge of how the window was originally created.
In Windows, I would do something like this
// Get the handle to the window...
HWND Handle = FindWindow("Window's Title");
Message("Cannot find the window");
How could I do this in Cocoa?
nameOfWindow = [NSWindow title] will return the window title in the form of an NSString
MacBook Pro 15" 2GHz Quad i7-8GB RAM-240GB OCZ SSD-750GB HD-OS X Lion
PowerMac G4 1.42GHz Dual PPC-2GB RAM-240GB OCZ SSD-OS X Leopard-MorphOS 2.7
PowerMac G4 Cube 450MHz PPC-1GB RAM-100HD-OS X Leopard
iPad 64GB Wifi/3G-iOS 5
iPhone 4S 64GB-iOS 5