Changeset 261

Show
Ignore:
Timestamp:
11/15/07 13:42:30 (1 year ago)
Author:
rentzsch
Message:

[NEW] Finder 10.5 and Xcode 2.5 compatibility tweaks. Hopefully this doesn't break 10.4 and 2.4.

Files:

Legend:

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

    r248 r261  
    5959                repeat with targetIt in (every target of _project) 
    6060                        repeat with buildFileIt in build files of targetIt 
    61                                 if full path of file reference of buildFileIt is _buildFilePath then set theResult to theResult & {targetIt
     61                                if full path of file reference of buildFileIt is _buildFilePath then set theResult to theResult & {(targetIt as anything)
    6262                        end repeat 
    6363                end repeat 
     
    6969        set modelFilePath to POSIX file modelFilePath 
    7070        tell application "Finder" 
    71                 set modelFileFolder to folder of modelFilePath 
    72                 set modelFileName to name of modelFilePath 
     71                set modelFileFolder to folder of (modelFilePath as file) 
     72                set modelFileName to name of (modelFilePath as file) 
    7373                set modelSrcFolderName to text 1 thru -13 of modelFileName -- pull off the .xcdatamodel extension 
    7474                if not (exists folder modelSrcFolderName of modelFileFolder) then