ILScopeBarDataSource protocol reference

ILScopeBarProtocols.h

Overview

The required protocol used for any Data Source set for ILScopeBar

Tasks

Required Methods

Optional Methods

Instance methods

numberOfItemsInScopeBar:

- (NSInteger)numberOfItemsInScopeBar:(ILScopeBar *) bar
Return value

Return the number of items to be used for the scope bar.

Warning

This method gets called often, so be sure to optimize it accordingly.

Declared in
ILScopeBarProtocols.h

titleOfItemInScopeBar:atIndex:

- (NSString *)titleOfItemInScopeBar:(ILScopeBar *) bar atIndex:(NSInteger) idx
Return value

Return the tile of all the items to be used for the scope bar.

Warning

This method gets called often, so be sure to optimize it accordingly.

Declared in
ILScopeBarProtocols.h

titleForBar:

- (NSString *)titleForBar:(ILScopeBar *) bar
Return value

Return the title drawn at the left of the scope bar.

Discussion

Usually this would have a semicolon

Warning

This method gets called often, so be sure to optimize it accordingly.

Declared in
ILScopeBarProtocols.h

tagForItemInScopeBar:atIndex:

- (NSInteger)tagForItemInScopeBar:(ILScopeBar *) bar atIndex:(NSInteger) idx
Return value

Return the tag of the items in the scope bar.

Warning

This method gets called often, so be sure to optimize it accordingly.

Declared in
ILScopeBarProtocols.h

imageForItemInScopeBar:atIndex:

- (NSImage *)imageForItemInScopeBar:(ILScopeBar *) bar atIndex:(NSInteger) idx
Return value

Return the image of items to be used for the scope bar.

Warning

This method gets called often, so be sure to optimize it accordingly.

Declared in
ILScopeBarProtocols.h

(Last updated: 2010-08-03)
Back to index / hierarchy.