SndDisplayDataList Class Reference

Maintain a sorted list of cached display data for SndViews. More...

#import <SndDisplayDataList.h>

List of all members.

Public Member Functions

(id) - sort
 Sorts the underlying list of display data for the current display resolution into chronological order.
(int) - findObjectContaining:next:leadsOnFrom:
 Sorts the underlying list of display data for the current display resolution into chronological order.

Protected Attributes

NSMutableArray * embeddedArray


Detailed Description

Maintain a sorted list of cached display data for SndViews.

If it was easy to subclass NSMutableArray this would be one. However it was easier to simply hold an instance variable of a NSMutableArray and send it all messages which we outselves do not recognise. The special things we want to add to NSMutableArray are a specialised sort routine, and a method to return the underlying data object holding the data for a given pixel.


Member Function Documentation

- (id) sort  

Sorts the underlying list of display data for the current display resolution into chronological order.

Returns:
Returns self. Elements may be discontiguous. INTERNAL USE ONLY.

- (int) findObjectContaining: (int)  pixel
next: (int *)  next
leadsOnFrom: (int *)  leadsOnFrom 

Sorts the underlying list of display data for the current display resolution into chronological order.

Returns:
Returns the index of the object containing the given pixel, or -1 if the pixel is before the start of the cached data. On return, next is filled with the index of the following data segment (if it exists), and leadsOnFrom is filled with the index of the preceding data segment, if it exits AND if the data in the two segments is continuous. Elements may be discontiguous. INTERNAL USE ONLY.


Member Data Documentation

- (NSMutableArray*) embeddedArray [protected]


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

Generated on Sat Dec 5 17:01:16 2009 for MusicKit by  doxygen 1.5.6