Inherits from NSManagedObject
Declared in Track.h
Track.m

Overview

Track class description. The class that includes attributes and methods for Track object.

Tasks

Create Methods

Class Methods

trackForBook:lendDate:toWhom:comment:inManagedObjectContext:

Method that creates a Track object.

+ (Track *)trackForBook:(Book *)book lendDate:(NSDate *)date toWhom:(NSString *)borrower comment:(NSString *)comment inManagedObjectContext:(NSManagedObjectContext *)context

Parameters

book

The Book object of which you keep track of.

date

The date the book is lent.

borrower

Person who borrowed this book.

comment

Comment.

context

Managed object context of the database.

Return Value

Returns the Track object that is created.

Discussion

Method that creates a Track object.

Declared In

Track+Create.h

Instance Methods

lendDateAsString

Method that converts the attribute lendDate to string.

- (NSString *)lendDateAsString

Return Value

The attribute lendDate as string.

Discussion

Method that converts the attribute lendDate to string.

Declared In

Track+Create.h

returnDateAsString

Method that converts the attribute returnDate to string.

- (NSString *)returnDateAsString

Return Value

The attribute returnDate as string.

Discussion

Method that converts the attribute returnDate to string.

Declared In

Track+Create.h