tags:

views:

36

answers:

0

How can I make this method loop thought an string array and make a new menu item for each string array element. Also how can i store it all in a sub menu...

Heres my method so far...

-(void)trackIntoArray{
    id iTunes = [SBApplication applicationWithBundleIdentifier:@"com.apple.iTunes"];
    NSArray *allTrackNames = [iTunes valueForKeyPath:@"[email protected][email protected]"];
    int aSize = [allTrackNames count];

    //loop throught allTrackNames and create a new menu item with trackname
    for (int counter = 0; counter <= aSize; counter++){
    }
}