Files
gitx/PBRefMenuItem.h
Nathan Kinsinger ff5f3f7979 Add methods dealing with menus needed for future features.
Switch from storing both the ref and the commit to storing just one or the other as a refish.

Change action methods that receive PBRefMenuItem to support the change in functionality. In particular the removeRefSheetDidEnd:returnCode:contextInfo: method in PBRefController now looks up the commit for the ref (this was the only place that needed both the ref and the commit).
2010-03-06 15:58:20 -07:00

24 lines
551 B
Objective-C

//
// PBRefMenuItem.h
// GitX
//
// Created by Pieter de Bie on 01-11-08.
// Copyright 2008 Pieter de Bie. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "PBGitRef.h"
#import "PBGitCommit.h"
@interface PBRefMenuItem : NSMenuItem {
id <PBGitRefish> refish;
}
@property (retain) id <PBGitRefish> refish;
+ (PBRefMenuItem *) separatorItem;
+ (NSArray *) defaultMenuItemsForRef:(PBGitRef *)ref inRepository:(PBGitRepository *)repo target:(id)target;
+ (NSArray *) defaultMenuItemsForCommit:(PBGitCommit *)commit target:(id)target;
@end