Changeset 296

Show
Ignore:
Timestamp:
03/10/08 09:08:59 (10 months ago)
Author:
wolf
Message:

[NEW] mogenerator 1.9: Xcode 3.1b moves momc to /Developer/usr/bin/momc.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cocoa/mogenerator/mogenerator.m

    r295 r296  
    260260    if ([[path pathExtension] isEqualToString:@"xcdatamodel"]) { 
    261261        //      We've been handed a .xcdatamodel data model, transparently compile it into a .mom managed object model. 
    262         NSString *momc = [[NSFileManager defaultManager] fileExistsAtPath:@"/Library/Application Support/Apple/Developer Tools/Plug-ins/XDCoreDataModel.xdplugin/Contents/Resources/momc"] 
    263         ? @"/Library/Application Support/Apple/Developer Tools/Plug-ins/XDCoreDataModel.xdplugin/Contents/Resources/momc" 
    264         : @"/Developer/Library/Xcode/Plug-ins/XDCoreDataModel.xdplugin/Contents/Resources/momc"; 
     262         
     263        //  Find where Xcode installed momc this week. 
     264        NSString *momc = nil; 
     265        if ([[NSFileManager defaultManager] fileExistsAtPath:@"/Developer/usr/bin/momc"]) { // Xcode 3.1 installs it here. 
     266            momc = @"/Developer/usr/bin/momc"; 
     267        } else if ([[NSFileManager defaultManager] fileExistsAtPath:@"/Library/Application Support/Apple/Developer Tools/Plug-ins/XDCoreDataModel.xdplugin/Contents/Resources/momc"]) { // Xcode 3.0. 
     268            momc = @"/Library/Application Support/Apple/Developer Tools/Plug-ins/XDCoreDataModel.xdplugin/Contents/Resources/momc"; 
     269        } else if ([[NSFileManager defaultManager] fileExistsAtPath:@"/Developer/Library/Xcode/Plug-ins/XDCoreDataModel.xdplugin/Contents/Resources/momc"]) { // Xcode 2.4. 
     270            momc = @"/Developer/Library/Xcode/Plug-ins/XDCoreDataModel.xdplugin/Contents/Resources/momc"; 
     271        } 
     272        assert(momc && "momc not found"); 
    265273         
    266274        tempMOMPath = [[NSTemporaryDirectory() stringByAppendingPathComponent:[(id)CFUUIDCreateString(kCFAllocatorDefault, CFUUIDCreate(kCFAllocatorDefault)) autorelease]] stringByAppendingPathExtension:@"mom"]; 
     
    283291    if (_version) 
    284292    { 
    285         printf("mogenerator 1.8.1. By Jonathan 'Wolf' Rentzsch + friends.\n"); 
     293        printf("mogenerator 1.9. By Jonathan 'Wolf' Rentzsch + friends.\n"); 
    286294        return EXIT_SUCCESS; 
    287295    } 
  • trunk/cocoa/mogenerator/mogenerator.xcodeproj/wolf.mode1v3

    r295 r296  
    198198        <array/> 
    199199        <key>OpenEditors</key> 
    200         <array/> 
     200        <array> 
     201                <dict> 
     202                        <key>Content</key> 
     203                        <dict> 
     204                                <key>PBXProjectModuleGUID</key> 
     205                                <string>791C8F480D85CC2F001E8D4C</string> 
     206                                <key>PBXProjectModuleLabel</key> 
     207                                <string>mogenerator.m</string> 
     208                                <key>PBXSplitModuleInNavigatorKey</key> 
     209                                <dict> 
     210                                        <key>Split0</key> 
     211                                        <dict> 
     212                                                <key>PBXProjectModuleGUID</key> 
     213                                                <string>791C8F490D85CC2F001E8D4C</string> 
     214                                                <key>PBXProjectModuleLabel</key> 
     215                                                <string>mogenerator.m</string> 
     216                                                <key>_historyCapacity</key> 
     217                                                <integer>0</integer> 
     218                                                <key>bookmark</key> 
     219                                                <string>791C8F4B0D85CC37001E8D4C</string> 
     220                                                <key>history</key> 
     221                                                <array> 
     222                                                        <string>791C8F410D85C8A3001E8D4C</string> 
     223                                                </array> 
     224                                        </dict> 
     225                                        <key>SplitCount</key> 
     226                                        <string>1</string> 
     227                                </dict> 
     228                                <key>StatusBarVisibility</key> 
     229                                <true/> 
     230                        </dict> 
     231                        <key>Geometry</key> 
     232                        <dict> 
     233                                <key>Frame</key> 
     234                                <string>{{0, 20}, {1096, 762}}</string> 
     235                                <key>PBXModuleWindowStatusBarHidden2</key> 
     236                                <false/> 
     237                                <key>RubberWindowFrame</key> 
     238                                <string>1031 524 1096 803 0 0 2560 1578 </string> 
     239                        </dict> 
     240                </dict> 
     241        </array> 
    201242        <key>PerspectiveWidths</key> 
    202243        <array> 
     
    209250                        <key>ChosenToolbarItems</key> 
    210251                        <array> 
    211                                 <string>active-target-popup</string> 
    212                                 <string>active-buildstyle-popup</string> 
    213                                 <string>active-executable-popup</string> 
     252                                <string>active-combo-popup</string> 
    214253                                <string>NSToolbarFlexibleSpaceItem</string> 
    215254                                <string>buildOrClean</string> 
     
    232271                        <array> 
    233272                                <dict> 
     273                                        <key>BecomeActive</key> 
     274                                        <true/> 
    234275                                        <key>ContentConfiguration</key> 
    235276                                        <dict> 
     
    268309                                                        <array> 
    269310                                                                <string>08FB7794FE84155DC02AAC07</string> 
     311                                                                <string>08FB7795FE84155DC02AAC07</string> 
    270312                                                                <string>1AB674ADFE9D54B511CA2CBB</string> 
    271313                                                                <string>1C37FABC05509CD000000102</string> 
     
    274316                                                        <array> 
    275317                                                                <array> 
     318                                                                        <integer>2</integer> 
    276319                                                                        <integer>1</integer> 
    277320                                                                        <integer>0</integer> 
     
    298341                                                </array> 
    299342                                                <key>RubberWindowFrame</key> 
    300                                                 <string>1861 1167 690 397 0 0 2560 1578 </string> 
     343                                                <string>1858 1167 690 397 0 0 2560 1578 </string> 
    301344                                        </dict> 
    302345                                        <key>Module</key> 
     
    335378                                                                <string>{{0, 0}, {482, 0}}</string> 
    336379                                                                <key>RubberWindowFrame</key> 
    337                                                                 <string>1861 1167 690 397 0 0 2560 1578 </string> 
     380                                                                <string>1858 1167 690 397 0 0 2560 1578 </string> 
    338381                                                        </dict> 
    339382                                                        <key>Module</key> 
     
    343386                                                </dict> 
    344387                                                <dict> 
    345                                                         <key>BecomeActive</key> 
    346                                                         <true/> 
    347388                                                        <key>ContentConfiguration</key> 
    348389                                                        <dict> 
     
    357398                                                                <string>{{0, 5}, {482, 351}}</string> 
    358399                                                                <key>RubberWindowFrame</key> 
    359                                                                 <string>1861 1167 690 397 0 0 2560 1578 </string> 
     400                                                                <string>1858 1167 690 397 0 0 2560 1578 </string> 
    360401                                                        </dict> 
    361402                                                        <key>Module</key> 
     
    381422                        <key>TableOfContents</key> 
    382423                        <array> 
    383                                 <string>7975A59E0D7C649B009C1F2D</string> 
     424                                <string>791C8F3F0D85C801001E8D4C</string> 
    384425                                <string>1CE0B1FE06471DED0097A5F4</string> 
    385                                 <string>7975A59F0D7C649B009C1F2D</string> 
     426                                <string>791C8F400D85C801001E8D4C</string> 
    386427                                <string>1CE0B20306471E060097A5F4</string> 
    387428                                <string>1CE0B20506471E060097A5F4</string> 
     
    518559        <array> 
    519560                <string>79AC5C650D3FEA19008AE93A</string> 
     561                <string>791C8F480D85CC2F001E8D4C</string> 
    520562                <string>/Users/wolf/code/trac/cocoa/mogenerator/mogenerator.xcodeproj</string> 
    521563        </array> 
    522564        <key>WindowString</key> 
    523         <string>1861 1167 690 397 0 0 2560 1578 </string> 
     565        <string>1858 1167 690 397 0 0 2560 1578 </string> 
    524566        <key>WindowToolsV3</key> 
    525567        <array> 
     
    537579                                        <array> 
    538580                                                <dict> 
     581                                                        <key>BecomeActive</key> 
     582                                                        <true/> 
    539583                                                        <key>ContentConfiguration</key> 
    540584                                                        <dict> 
     
    542586                                                                <string>1CD0528F0623707200166675</string> 
    543587                                                                <key>PBXProjectModuleLabel</key> 
    544                                                                 <string></string> 
     588                                                                <string>mogenerator.m</string> 
    545589                                                                <key>StatusBarVisibility</key> 
    546590                                                                <true/> 
     
    549593                                                        <dict> 
    550594                                                                <key>Frame</key> 
    551                                                                 <string>{{0, 0}, {500, 218}}</string> 
     595                                                                <string>{{0, 0}, {1051, 304}}</string> 
    552596                                                                <key>RubberWindowFrame</key> 
    553                                                                 <string>901 745 500 500 0 0 2560 1578 </string> 
     597                                                                <string>901 659 1051 586 0 0 2560 1578 </string> 
    554598                                                        </dict> 
    555599                                                        <key>Module</key> 
    556600                                                        <string>PBXNavigatorGroup</string> 
    557601                                                        <key>Proportion</key> 
    558                                                         <string>218pt</string> 
     602                                                        <string>304pt</string> 
    559603                                                </dict> 
    560604                                                <dict> 
     
    573617                                                        <dict> 
    574618                                                                <key>Frame</key> 
    575                                                                 <string>{{0, 223}, {500, 236}}</string> 
     619                                                                <string>{{0, 309}, {1051, 236}}</string> 
    576620                                                                <key>RubberWindowFrame</key> 
    577                                                                 <string>901 745 500 500 0 0 2560 1578 </string> 
     621                                                                <string>901 659 1051 586 0 0 2560 1578 </string> 
    578622                                                        </dict> 
    579623                                                        <key>Module</key> 
     
    584628                                        </array> 
    585629                                        <key>Proportion</key> 
    586                                         <string>459pt</string> 
     630                                        <string>545pt</string> 
    587631                                </dict> 
    588632                        </array> 
     
    598642                        <array> 
    599643                                <string>79AC5C650D3FEA19008AE93A</string> 
    600                                 <string>7975A5A30D7C65D5009C1F2D</string> 
     644                                <string>791C8F470D85CC24001E8D4C</string> 
    601645                                <string>1CD0528F0623707200166675</string> 
    602646                                <string>XCMainBuildResultsModuleGUID</string> 
     
    605649                        <string>xcode.toolbar.config.buildV3</string> 
    606650                        <key>WindowString</key> 
    607                         <string>901 745 500 500 0 0 2560 1578 </string> 
     651                        <string>901 659 1051 586 0 0 2560 1578 </string> 
    608652                        <key>WindowToolGUID</key> 
    609653                        <string>79AC5C650D3FEA19008AE93A</string> 
  • trunk/cocoa/mogenerator/mogenerator.xcodeproj/wolf.pbxuser

    r295 r296  
    7474                                ); 
    7575                        }; 
    76                         PBXPerProjectTemplateStateSaveDate = 226256017; 
    77                         PBXWorkspaceStateSaveDate = 226256017; 
     76                        PBXPerProjectTemplateStateSaveDate = 226871275; 
     77                        PBXWorkspaceStateSaveDate = 226871275; 
     78                }; 
     79                perUserProjectItems = { 
     80                        791C8F410D85C8A3001E8D4C /* PBXBookmark */ = 791C8F410D85C8A3001E8D4C /* PBXBookmark */; 
     81                        791C8F4B0D85CC37001E8D4C /* PBXTextBookmark */ = 791C8F4B0D85CC37001E8D4C /* PBXTextBookmark */; 
    7882                }; 
    7983                sourceControlManager = 79D2BF0B0ACFAE0700F3F141 /* Source Control */; 
     
    8387        08FB7796FE84155DC02AAC07 /* mogenerator.m */ = { 
    8488                uiCtxt = { 
    85                         sepNavIntBoundsRect = "{{0, 0}, {1274, 5684}}"; 
    86                         sepNavSelRange = "{0, 0}"; 
    87                         sepNavVisRange = "{0, 1657}"; 
     89                        sepNavIntBoundsRect = "{{0, 0}, {1278, 5922}}"; 
     90                        sepNavSelRange = "{10952, 0}"; 
     91                        sepNavVisRange = "{10552, 1661}"; 
    8892                        sepNavVisRect = "{{0, 0}, {1057, 777}}"; 
    8993                        sepNavWindowFrame = "{{1031, 492}, {1096, 835}}"; 
    9094                }; 
     95        }; 
     96        791C8F410D85C8A3001E8D4C /* PBXBookmark */ = { 
     97                isa = PBXBookmark; 
     98                fRef = 08FB7796FE84155DC02AAC07 /* mogenerator.m */; 
     99        }; 
     100        791C8F4B0D85CC37001E8D4C /* PBXTextBookmark */ = { 
     101                isa = PBXTextBookmark; 
     102                fRef = 08FB7796FE84155DC02AAC07 /* mogenerator.m */; 
     103                name = "mogenerator.m: 293"; 
     104                rLen = 0; 
     105                rLoc = 10952; 
     106                rType = 0; 
     107                vrLen = 1661; 
     108                vrLoc = 10552; 
    91109        }; 
    92110        79D2BF080ACFAE0100F3F141 /* mogenerator */ = {