Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Private Member Functions
TopLevelWindowData Class Reference

#import <nsWindowMap.h>

List of all members.

Public Member Functions

(id- initWithWindow:
(void- dealloc [implementation]

Private Member Functions

(void- windowResignedKey: [implementation]
(void- windowBecameKey: [implementation]
(void- windowWillClose: [implementation]

Detailed Description

Definition at line 81 of file nsWindowMap.h.


Member Function Documentation

- (void) dealloc [implementation]

Definition at line 139 of file nsWindowMap.mm.

{
  [[NSNotificationCenter defaultCenter] removeObserver:self];
  [super dealloc];
}
- (id) initWithWindow: (NSWindow*)  inWindow

Definition at line 117 of file nsWindowMap.mm.

                    :(NSWindow*)inWindow
{
  if ((self = [super init]))
  {
    [[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(windowBecameKey:)
                                                 name:NSWindowDidBecomeKeyNotification
                                               object:inWindow];

    [[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(windowResignedKey:)
                                                 name:NSWindowDidResignKeyNotification
                                               object:inWindow];

    [[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(windowWillClose:)
                                                 name:NSWindowWillCloseNotification
                                               object:inWindow];
  }
  return self;
}

Here is the call graph for this function:

- (void) windowBecameKey: (NSNotification*)  inNotification [implementation]

Definition at line 145 of file nsWindowMap.mm.

                       :(NSNotification*)inNotification
{
  id firstResponder = [[inNotification object] firstResponder];
  if ([firstResponder isKindOfClass:[ChildView class]])
  {
    [firstResponder viewsWindowDidBecomeKey];
  }
}
- (void) windowResignedKey: (NSNotification*)  inNotification [implementation]

Definition at line 154 of file nsWindowMap.mm.

                         :(NSNotification*)inNotification
{
  id firstResponder = [[inNotification object] firstResponder];
  if ([firstResponder isKindOfClass:[ChildView class]])
  {
    [firstResponder viewsWindowDidResignKey];
  }
}
- (void) windowWillClose: (NSNotification*)  inNotification [implementation]

Definition at line 163 of file nsWindowMap.mm.

                       :(NSNotification*)inNotification
{
  // postpone our destruction
  [[self retain] autorelease];

  // remove ourselves from the window map (which owns us)
  [[WindowDataMap sharedWindowDataMap] removeDataForWindow:[inNotification object]];
}

Here is the call graph for this function:


The documentation for this class was generated from the following files: