CatNiP docutest
Sähköinen nuottikirja, HY-TKTKL-OHTUPROJ KESÄ11
DetailPopoverController Class Reference

DetailPopoverController.m CatNiP. More...

#import <DetailPopoverController.h>

Collaboration diagram for DetailPopoverController:

List of all members.

Public Member Functions

(void) - dealloc [implementation]
(void) - didReceiveMemoryWarning [implementation]
(id) - initWithStyle:masterController:dictionary:
 Basic init for DETAILPopoverController, sets masterController = controller.
(NSInteger) - numberOfSectionsInTableView:
 UITableViewDatasource protocol function's implementation.
(BOOL) - shouldAutorotateToInterfaceOrientation: [implementation]
(UITableViewCell *) - tableView:cellForRowAtIndexPath:
 UITableViewDatasource protocol function's implementation.
(void) - tableView:didSelectRowAtIndexPath: [implementation]
 UITableViewDelegate protocol function left for later implementation.
(CGFloat) - tableView:heightForHeaderInSection:
 UITableViewDelegate protocol function's implementation.
(CGFloat) - tableView:heightForRowAtIndexPath:
 UITableViewDelegate protocol function's implementation.
(NSInteger) - tableView:numberOfRowsInSection:
 UITableViewDatasource protocol function's implementation.
(UIView *) - tableView:viewForHeaderInSection:
 UITableViewDelegate protocol function's implementation.
(void) - viewDidAppear: [implementation]
(void) - viewDidDisappear: [implementation]
(void) - viewDidLoad [implementation]
(void) - viewDidUnload [implementation]
(void) - viewWillAppear: [implementation]
(void) - viewWillDisappear: [implementation]

Protected Attributes

CatNiPViewControllermaster

Properties

NSString * composer
NSString * composition
NSString * description
IBOutlet CatNiPViewControllermaster
NSDictionary * metaDataDict
NSArray * sortedKeys

Detailed Description

DetailPopoverController.m CatNiP.

Shows all the details for the chosen score in tableview.

API up to date 28.6.2011


Member Function Documentation

- (void) dealloc [implementation]
- (void) didReceiveMemoryWarning [implementation]
- (id) initWithStyle: (UITableViewStyle)  style
masterController: (CatNiPViewController *)  controller
dictionary: (NSDictionary *)  dict 

Basic init for DETAILPopoverController, sets masterController = controller.

Parameters:
initWithStyle,:check framework's API for UITableViewStyles
masterControllermaster viewController in which this popover is represented.
Returns:
id
- (NSInteger) numberOfSectionsInTableView: (UITableView *)  tableView

UITableViewDatasource protocol function's implementation.

Returns 1

Parameters:
numberOfSectionInTableViewself.tableView
Returns:
returns 1
- (BOOL) shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation)  interfaceOrientation [implementation]
- (UITableViewCell *) tableView: (UITableView *)  tableView
cellForRowAtIndexPath: (NSIndexPath *)  indexPath 

UITableViewDatasource protocol function's implementation.

Parameters:
tableViewself.tableView
cellForRowAtIndexPathindexPath for cell to be created
Returns:
created cell for given arguments
- (void) tableView: (UITableView *)  tableView
didSelectRowAtIndexPath: (NSIndexPath *)  indexPath 
[implementation]

UITableViewDelegate protocol function left for later implementation.

Not implemented yet.

Parameters:
tableViewself.tableView
didSelectRowAtIndexPathselected cell's indexPath
- (CGFloat) tableView: (UITableView *)  tableView
heightForHeaderInSection: (NSInteger)  section 

UITableViewDelegate protocol function's implementation.

Returns 23

Parameters:
tableViewself.tableView
heightForHeaderInSectionSection 0 = composer, 1 = composition, 2 = scoreName and 3 = otherInfo
Returns:
returns 23 as CGFloat
- (CGFloat) tableView: (UITableView *)  tableView
heightForRowAtIndexPath: (NSIndexPath *)  indexPath 

UITableViewDelegate protocol function's implementation.

Calculate row's height based on cell.textLabel.text's length. Calculation formula is: (((int)(length / 55)+1) * 17) + 20;

Parameters:
tableViewself.tableView
indexPathSection 0 = composer, 1 = composition, 2 = scoreName and 3+ = other info found from IMSLP.
Returns:
height of row as CGFloat
- (NSInteger) tableView: (UITableView *)  tableView
numberOfRowsInSection: (NSInteger)  section 

UITableViewDatasource protocol function's implementation.

Returns 1

Parameters:
tableViewself.tableView
numberOfRowsInSectiononly one row in each section
Returns:
return 1
- (UIView *) tableView: (UITableView *)  tableView
viewForHeaderInSection: (NSInteger)  section 

UITableViewDelegate protocol function's implementation.

Creates UILabel with text indicating the information about the score that is represented in the section. Texts for sections: 0 = Composer, 1 = Composition, 2 = Score name and 3+ = other info found from IMSLP;

Parameters:
tableViewself.tableView
viewForHeaderInSectionSection 0 = composer, 1 = composition, 2 = scoreName and 3 = otherInfo
Returns:
returns UILabel representing the sections info
- (void) viewDidAppear: (BOOL)  animated [implementation]
- (void) viewDidDisappear: (BOOL)  animated [implementation]
- (void) viewDidLoad [implementation]
- (void) viewDidUnload [implementation]
- (void) viewWillAppear: (BOOL)  animated [implementation]
- (void) viewWillDisappear: (BOOL)  animated [implementation]

Member Data Documentation

- (CatNiPViewController*) master [protected]

Property Documentation

- (NSString *) composer [read, write, retain]
- (NSString *) composition [read, write, retain]
- (NSString *) description [read, write, retain]
- (IBOutlet CatNiPViewController*) master [read, write, retain]
- (NSDictionary *) metaDataDict [read, write, copy]
- (NSArray *) sortedKeys [read, write, retain]

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