Changeset 295

Show
Ignore:
Timestamp:
03/03/08 05:34:04 (10 months ago)
Author:
wolf
Message:

[FIX] mogenerator 1.8.1: Quote .xcdatamodel and .mom paths when invoking momc -- before it was unhappy if your model file had a space in its name. (Ruotger Skupin).

Files:

Legend:

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

    r294 r295  
    265265         
    266266        tempMOMPath = [[NSTemporaryDirectory() stringByAppendingPathComponent:[(id)CFUUIDCreateString(kCFAllocatorDefault, CFUUIDCreate(kCFAllocatorDefault)) autorelease]] stringByAppendingPathExtension:@"mom"]; 
    267         system([[NSString stringWithFormat:@"\"%@\" %@ %@", momc, path, tempMOMPath] UTF8String]); // Ignored system's result -- momc doesn't return any relevent error codes. 
     267        system([[NSString stringWithFormat:@"\"%@\" \"%@\" \"%@\"", momc, path, tempMOMPath] UTF8String]); // Ignored system's result -- momc doesn't return any relevent error codes. 
    268268        path = tempMOMPath; 
    269269    } 
     
    283283    if (_version) 
    284284    { 
    285         printf("mogenerator 1.8. By Jonathan 'Wolf' Rentzsch + friends.\n"); 
     285        printf("mogenerator 1.8.1. By Jonathan 'Wolf' Rentzsch + friends.\n"); 
    286286        return EXIT_SUCCESS; 
    287287    } 
  • trunk/cocoa/mogenerator/mogenerator.xcodeproj/wolf.mode1v3

    r294 r295  
    198198        <array/> 
    199199        <key>OpenEditors</key> 
    200         <array> 
    201                 <dict> 
    202                         <key>Content</key> 
    203                         <dict> 
    204                                 <key>PBXProjectModuleGUID</key> 
    205                                 <string>7942A4AF0D7603A40097D2DE</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>7942A4B00D7603A40097D2DE</string> 
    214                                                 <key>PBXProjectModuleLabel</key> 
    215                                                 <string>mogenerator.m</string> 
    216                                                 <key>_historyCapacity</key> 
    217                                                 <integer>0</integer> 
    218                                                 <key>bookmark</key> 
    219                                                 <string>7942A4B20D7603A40097D2DE</string> 
    220                                                 <key>history</key> 
    221                                                 <array> 
    222                                                         <string>7942A4B10D7603A40097D2DE</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>542 210 1096 803 0 0 2560 1578 </string> 
    239                         </dict> 
    240                 </dict> 
    241                 <dict> 
    242                         <key>Content</key> 
    243                         <dict> 
    244                                 <key>PBXProjectModuleGUID</key> 
    245                                 <string>7942A4B30D7603A40097D2DE</string> 
    246                                 <key>PBXProjectModuleLabel</key> 
    247                                 <string>NSAttributeDescription.h</string> 
    248                                 <key>PBXSplitModuleInNavigatorKey</key> 
    249                                 <dict> 
    250                                         <key>Split0</key> 
    251                                         <dict> 
    252                                                 <key>PBXProjectModuleGUID</key> 
    253                                                 <string>7942A4B40D7603A40097D2DE</string> 
    254                                                 <key>PBXProjectModuleLabel</key> 
    255                                                 <string>NSAttributeDescription.h</string> 
    256                                                 <key>_historyCapacity</key> 
    257                                                 <integer>0</integer> 
    258                                                 <key>bookmark</key> 
    259                                                 <string>7942A4B70D7603A40097D2DE</string> 
    260                                                 <key>history</key> 
    261                                                 <array> 
    262                                                         <string>7942A4B50D7603A40097D2DE</string> 
    263                                                 </array> 
    264                                         </dict> 
    265                                         <key>SplitCount</key> 
    266                                         <string>1</string> 
    267                                 </dict> 
    268                                 <key>StatusBarVisibility</key> 
    269                                 <true/> 
    270                         </dict> 
    271                         <key>Geometry</key> 
    272                         <dict> 
    273                                 <key>Frame</key> 
    274                                 <string>{{0, 20}, {1035, 824}}</string> 
    275                                 <key>PBXModuleWindowStatusBarHidden2</key> 
    276                                 <false/> 
    277                                 <key>RubberWindowFrame</key> 
    278                                 <string>107 624 1035 865 0 0 2560 1578 </string> 
    279                         </dict> 
    280                 </dict> 
    281         </array> 
     200        <array/> 
    282201        <key>PerspectiveWidths</key> 
    283202        <array> 
     
    379298                                                </array> 
    380299                                                <key>RubberWindowFrame</key> 
    381                                                 <string>935 922 690 397 0 0 2560 1578 </string> 
     300                                                <string>1861 1167 690 397 0 0 2560 1578 </string> 
    382301                                        </dict> 
    383302                                        <key>Module</key> 
     
    416335                                                                <string>{{0, 0}, {482, 0}}</string> 
    417336                                                                <key>RubberWindowFrame</key> 
    418                                                                 <string>935 922 690 397 0 0 2560 1578 </string> 
     337                                                                <string>1861 1167 690 397 0 0 2560 1578 </string> 
    419338                                                        </dict> 
    420339                                                        <key>Module</key> 
     
    438357                                                                <string>{{0, 5}, {482, 351}}</string> 
    439358                                                                <key>RubberWindowFrame</key> 
    440                                                                 <string>935 922 690 397 0 0 2560 1578 </string> 
     359                                                                <string>1861 1167 690 397 0 0 2560 1578 </string> 
    441360                                                        </dict> 
    442361                                                        <key>Module</key> 
     
    462381                        <key>TableOfContents</key> 
    463382                        <array> 
    464                                 <string>7942A4AD0D7603A40097D2DE</string> 
     383                                <string>7975A59E0D7C649B009C1F2D</string> 
    465384                                <string>1CE0B1FE06471DED0097A5F4</string> 
    466                                 <string>7942A4AE0D7603A40097D2DE</string> 
     385                                <string>7975A59F0D7C649B009C1F2D</string> 
    467386                                <string>1CE0B20306471E060097A5F4</string> 
    468387                                <string>1CE0B20506471E060097A5F4</string> 
     
    599518        <array> 
    600519                <string>79AC5C650D3FEA19008AE93A</string> 
    601                 <string>7942A4B30D7603A40097D2DE</string> 
    602                 <string>7942A4AF0D7603A40097D2DE</string> 
    603520                <string>/Users/wolf/code/trac/cocoa/mogenerator/mogenerator.xcodeproj</string> 
    604521        </array> 
    605522        <key>WindowString</key> 
    606         <string>935 922 690 397 0 0 2560 1578 </string> 
     523        <string>1861 1167 690 397 0 0 2560 1578 </string> 
    607524        <key>WindowToolsV3</key> 
    608525        <array> 
     
    681598                        <array> 
    682599                                <string>79AC5C650D3FEA19008AE93A</string> 
    683                                 <string>7942A4B90D7603A40097D2DE</string> 
     600                                <string>7975A5A30D7C65D5009C1F2D</string> 
    684601                                <string>1CD0528F0623707200166675</string> 
    685602                                <string>XCMainBuildResultsModuleGUID</string> 
  • trunk/cocoa/mogenerator/mogenerator.xcodeproj/wolf.pbxuser

    r294 r295  
    7474                                ); 
    7575                        }; 
    76                         PBXPerProjectTemplateStateSaveDate = 225834547; 
    77                         PBXWorkspaceStateSaveDate = 225834547; 
    78                 }; 
    79                 perUserProjectItems = { 
    80                         7942A4B10D7603A40097D2DE /* PBXTextBookmark */ = 7942A4B10D7603A40097D2DE /* PBXTextBookmark */; 
    81                         7942A4B20D7603A40097D2DE /* PBXTextBookmark */ = 7942A4B20D7603A40097D2DE /* PBXTextBookmark */; 
    82                         7942A4B50D7603A40097D2DE /* PBXTextBookmark */ = 7942A4B50D7603A40097D2DE /* PBXTextBookmark */; 
    83                         7942A4B70D7603A40097D2DE /* PBXTextBookmark */ = 7942A4B70D7603A40097D2DE /* PBXTextBookmark */; 
     76                        PBXPerProjectTemplateStateSaveDate = 226256017; 
     77                        PBXWorkspaceStateSaveDate = 226256017; 
    8478                }; 
    8579                sourceControlManager = 79D2BF0B0ACFAE0700F3F141 /* Source Control */; 
     
    8983        08FB7796FE84155DC02AAC07 /* mogenerator.m */ = { 
    9084                uiCtxt = { 
    91                         sepNavIntBoundsRect = "{{0, 0}, {1037, 6048}}"; 
    92                         sepNavSelRange = "{3485, 0}"; 
    93                         sepNavVisRange = "{2598, 1676}"; 
     85                        sepNavIntBoundsRect = "{{0, 0}, {1274, 5684}}"; 
     86                        sepNavSelRange = "{0, 0}"; 
     87                        sepNavVisRange = "{0, 1657}"; 
    9488                        sepNavVisRect = "{{0, 0}, {1057, 777}}"; 
    95                         sepNavWindowFrame = "{{542, 178}, {1096, 835}}"; 
    96                 }; 
    97         }; 
    98         7942A4B10D7603A40097D2DE /* PBXTextBookmark */ = { 
    99                 isa = PBXTextBookmark; 
    100                 fRef = 08FB7796FE84155DC02AAC07 /* mogenerator.m */; 
    101                 name = "mogenerator.m: 78"; 
    102                 rLen = 22; 
    103                 rLoc = 2519; 
    104                 rType = 0; 
    105                 vrLen = 1391; 
    106                 vrLoc = 2155; 
    107         }; 
    108         7942A4B20D7603A40097D2DE /* PBXTextBookmark */ = { 
    109                 isa = PBXTextBookmark; 
    110                 fRef = 08FB7796FE84155DC02AAC07 /* mogenerator.m */; 
    111                 name = "mogenerator.m: 119"; 
    112                 rLen = 0; 
    113                 rLoc = 3485; 
    114                 rType = 0; 
    115                 vrLen = 1676; 
    116                 vrLoc = 2598; 
    117         }; 
    118         7942A4B50D7603A40097D2DE /* PBXTextBookmark */ = { 
    119                 isa = PBXTextBookmark; 
    120                 fRef = 7942A4B60D7603A40097D2DE /* NSAttributeDescription.h */; 
    121                 rLen = 0; 
    122                 rLoc = 9223372036854775807; 
    123                 rType = 0; 
    124         }; 
    125         7942A4B60D7603A40097D2DE /* NSAttributeDescription.h */ = { 
    126                 isa = PBXFileReference; 
    127                 lastKnownFileType = sourcecode.c.h; 
    128                 name = NSAttributeDescription.h; 
    129                 path = /System/Library/Frameworks/CoreData.framework/Versions/A/Headers/NSAttributeDescription.h; 
    130                 sourceTree = "<absolute>"; 
    131         }; 
    132         7942A4B70D7603A40097D2DE /* PBXTextBookmark */ = { 
    133                 isa = PBXTextBookmark; 
    134                 fRef = 7942A4B80D7603A40097D2DE /* NSAttributeDescription.h */; 
    135                 name = "NSAttributeDescription.h: 31"; 
    136                 rLen = 28; 
    137                 rLoc = 989; 
    138                 rType = 0; 
    139                 vrLen = 1912; 
    140                 vrLoc = 0; 
    141         }; 
    142         7942A4B80D7603A40097D2DE /* NSAttributeDescription.h */ = { 
    143                 isa = PBXFileReference; 
    144                 name = NSAttributeDescription.h; 
    145                 path = /System/Library/Frameworks/CoreData.framework/Versions/A/Headers/NSAttributeDescription.h; 
    146                 sourceTree = "<absolute>"; 
    147                 uiCtxt = { 
    148                         sepNavIntBoundsRect = "{{0, 0}, {1334, 1176}}"; 
    149                         sepNavSelRange = "{989, 28}"; 
    150                         sepNavVisRange = "{0, 1912}"; 
    151                         sepNavWindowFrame = "{{107, 592}, {1035, 897}}"; 
     89                        sepNavWindowFrame = "{{1031, 492}, {1096, 835}}"; 
    15290                }; 
    15391        };