Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
WindowDataMap Class Reference

#import <nsWindowMap.h>

List of all members.

Public Member Functions

(id- dataForWindow:
(void- setData:forWindow:
(void- removeDataForWindow:
(id- init [implementation]
(void- dealloc [implementation]

Static Public Member Functions

(WindowDataMap *) + sharedWindowDataMap

Private Member Functions

(NSString *) - keyForWindow: [implementation]

Private Attributes

NSMutableDictionary * mWindowMap

Detailed Description

Definition at line 55 of file nsWindowMap.h.


Member Function Documentation

- (id) dataForWindow: (NSWindow*)  inWindow

Definition at line 85 of file nsWindowMap.mm.

                   :(NSWindow*)inWindow
{
  return [mWindowMap objectForKey:[self keyForWindow:inWindow]];
}

Here is the call graph for this function:

Here is the caller graph for this function:

- (void) dealloc [implementation]

Definition at line 79 of file nsWindowMap.mm.

{
  [mWindowMap release];
  [super dealloc];
}
- (id) init [implementation]

Definition at line 70 of file nsWindowMap.mm.

{
  if ((self = [super init]))
  {
    mWindowMap = [[NSMutableDictionary alloc] initWithCapacity:10];
  }
  return self;
}
- (NSString *) keyForWindow: (NSWindow*)  inWindow [implementation]

Definition at line 100 of file nsWindowMap.mm.

                         :(NSWindow*)inWindow
{
  return [NSString stringWithFormat:@"%p", inWindow];
}

Here is the caller graph for this function:

- (void) removeDataForWindow: (NSWindow*)  inWindow

Definition at line 95 of file nsWindowMap.mm.

                           :(NSWindow*)inWindow
{
  [mWindowMap removeObjectForKey:[self keyForWindow:inWindow]];
}

Here is the call graph for this function:

Here is the caller graph for this function:

- (void) setData: (id inData
forWindow: (NSWindow*)  inWindow 

Definition at line 90 of file nsWindowMap.mm.

               :(id)inData forWindow:(NSWindow*)inWindow
{
  [mWindowMap setObject:inData forKey:[self keyForWindow:inWindow]];
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 61 of file nsWindowMap.mm.

{
  static WindowDataMap*   sWindowMap = nil;
  if (!sWindowMap)
    sWindowMap = [[WindowDataMap alloc] init];

  return sWindowMap;
}

Here is the caller graph for this function:


Member Data Documentation

- (NSMutableDictionary*) mWindowMap [private]

Definition at line 58 of file nsWindowMap.h.


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