Note that not all windows are necessarily NSWindows
, and that NSWindow
only provides an interface to windows in your own address space.
The supported way to access every window is the CGWindow
API. Take a look at the Son of Grab sample code to see how it’s done.
More Related Contents:
- Why NSWindow without styleMask:NSTitledWindowMask can not be keyWindow?
- How to get pixel data from a UIImage (Cocoa Touch) or CGImage (Core Graphics)?
- Exception thrown in NSOrderedSet generated accessors
- “Unknown class in Interface Builder file” error at runtime
- NSString to NSDate
- Should I use NSDecimalNumber to deal with money?
- Are “EXC_BREAKPOINT (SIGTRAP)” exceptions caused by debugging breakpoints?
- Why can’t code inside unit tests find bundle resources?
- Implementing a 30 day time trial [closed]
- Cocoa – Notification on NSUserDefaults value change?
- Register as Login Item with Cocoa?
- Xcode 6 iOS Creating a Cocoa Touch Framework – Architectures issues
- Any cocoa source code for AES encryption decryption?
- Cocoa Keyboard Shortcuts in Dialog without an Edit Menu
- What’s the optimum way of storing an NSDate in NSUserDefaults?
- Using frameworks in a command line tool
- How to use NSDecimalNumber?
- Mac / Cocoa – Getting a list of windows using Accessibility API
- Observing an NSMutableArray for insertion/removal
- Deep copy of dictionaries gives Analyze error in Xcode 4.2
- NSURL URLWithString: is null with non-english accented characters
- How to launch application and bring it to front using Cocoa api?
- How to change NSPopover background color include triangle part?
- Programmatically check if a process is running on Mac
- Strip Non-Alphanumeric Characters from an NSString
- Can I receive a callback whenever an NSPasteboard is written to?
- Placing an NSTimer in a separate thread
- What is the best way to redirect stdout to NSTextView in Cocoa?
- How do I draw an NSString at an angle?
- Best way to do interprocess communication on Mac OS X