Changeset 397


Ignore:
Timestamp:
02/24/08 06:03:02 (16 years ago)
Author:
Nicholas Riley
Message:

Replace id<NSMenuItem> with NSMenuItem * to remove warnings.

Minor code style cleanup.

Location:
trunk/Cocoa/F-Script Anywhere/Source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cocoa/F-Script Anywhere/Source/FSAAppList.m

    r342 r397  
    417417{
    418418    static NSMenu *dockMenu = nil;
    419     id<NSMenuItem> menuItem;
     419    NSMenuItem *menuItem;
    420420    DeVercruesseProcess *frontApp = [processManager frontProcess];
    421421    NSString *appName = [frontApp name];
  • trunk/Cocoa/F-Script Anywhere/Source/FSAController.m

    r226 r397  
    5252    if (!alreadyInstalled && ((mainMenu = [NSApp mainMenu]) != nil)) {
    5353        NSMenu *insertIntoMenu = nil;
    54         id<NSMenuItem> item;
     54        NSMenuItem *item;
    5555        unsigned insertLoc = NSNotFound;
    5656        NSBundle *bundle = [NSBundle bundleForClass: self];
     
    115115}
    116116
    117 + (BOOL)validateMenuItem:(id <NSMenuItem>)menuItem
     117+ (BOOL)validateMenuItem:(NSMenuItem *)menuItem
    118118{
    119119    SEL sel;
     
    151151        static unsigned numInterpWindows = 0;
    152152       
    153         if(showInterpreter){
     153        if (showInterpreter) {
    154154            NSAssert(window != nil, @"Can't get interpreter window!");
    155155            if (interpreterNum == 0) interpreterNum = ++numInterpWindows;
  • trunk/Cocoa/F-Script Anywhere/Source/FSAViewAssociationController.m

    r224 r397  
    7272}
    7373
    74 - (void)_addElement:(id)element withLabel:(NSString *)label toSubmenuForItem:(id<NSMenuItem>)item;
     74- (void)_addElement:(id)element withLabel:(NSString *)label toSubmenuForItem:(NSMenuItem *)item;
    7575{
    7676    NSMenu *submenu = [item submenu];
    77     id<NSMenuItem> subItem;
     77    NSMenuItem *subItem;
    7878    if (submenu == nil) {
    7979        id superElement = [item representedObject];
     
    9797}
    9898
    99 - (void)_addValueForSelector:(SEL)sel withLabel:(NSString *)label toSubmenuForItem:(id<NSMenuItem>)item;
     99- (void)_addValueForSelector:(SEL)sel withLabel:(NSString *)label toSubmenuForItem:(NSMenuItem *)item;
    100100{
    101101    id obj = [item representedObject];
     
    109109- (void)_addElementToMenu:(id)element;
    110110{
    111     id<NSMenuItem> item;
     111    NSMenuItem *item;
    112112    if (element == nil) return;
    113113    item = [viewHierarchyMenu addItemWithTitle: [@"  "
  • trunk/Cocoa/F-Script Anywhere/Source/FSAWindowManager.h

    r153 r397  
    1212    NSMenu *menu;
    1313    NSMutableDictionary *records;
    14     id<NSMenuItem> separator, label;
     14    NSMenuItem *separator, label;
    1515}
    1616
Note: See TracChangeset for help on using the changeset viewer.