GDActiveApplicationStack Class Reference

The GDActiveApplicationStack keeps a stack of application info dictionaries. More...

#import <GDActiveApplicationStack.h>

List of all members.

Public Member Functions

(id) - init
 Default init method.
(NSDictionary *) - top
 Returns the top item in the stack.
(NSDictionary *) - bottom
 Returns the bottom item in the stack.
(void) - popAndBringForward
 Pops an application off the stack, then brings the the bottom application forward.
(void) - bringTopForward
 Brings the top application forward.
(void) - bringBottomForward
 Brings the bottom application forward.
(void) - initWorkspaceAndListeners
 Initializes the workspace and listeners.
(void) - onApplicationActivate
 When the workspace changes active applications.

Static Public Member Functions

(Boolean) + isAvailable
 Check whether or not you can use this class.

Protected Attributes

NSMutableArray * stack
 The stack used to keep track of active applications.
NSWorkspaceworkspace
 NSWorkspace reference.
NSNotificationCenter * center
 The notification center from the workspace.

Properties

short limit
 The application stack limit.
BOOL onlyBringActiveApplicationsForward
 Only bring applications that are active forward.

Detailed Description

The GDActiveApplicationStack keeps a stack of application info dictionaries.

When application focus changes, an entry is added into the stack.


Member Function Documentation

- (id) init  

Default init method.

If you don't want to risk an exception being thrown, first check the +isAvailable method.

Exceptions:
NSException If the obj-c runtime is running on 10.5 (Leopard) or less.
+ (Boolean) isAvailable  

Check whether or not you can use this class.

This is available because the only SDK this class will work with is 10.6.


Property Documentation

- (BOOL) onlyBringActiveApplicationsForward [read, write, assign]

Only bring applications that are active forward.

If a call is made to bringTopForward, but the application that was saved in the stack isn't active, it will pop(), and try again.

If this isn't on, a call to bringTopForward will cause the application to launch if it's not open.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Enumerations Enumerator Properties Defines