Changeset 3041

Show
Ignore:
Timestamp:
11/05/05 23:08:40 (3 years ago)
Author:
timothy
Message:

First step in switching from cc.javelin.colloquy to info.colloquy. I have renamed the bundle identifiers and file UTIs. On launch Colloquy will check and move your old preferences file the first time.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Colloquy.xcodeproj/project.pbxproj

    r3032 r3041  
    114114                1CB2CD13052DDC560094AAA4 /* voice.tif in Resources */ = {isa = PBXBuildFile; fileRef = F544999F018E46CB01EE70DE /* voice.tif */; }; 
    115115                1CB2CD17052DDC560094AAA4 /* encoding.tif in Resources */ = {isa = PBXBuildFile; fileRef = F5D04C03019489B801A35792 /* encoding.tif */; }; 
    116                 1CB2CD18052DDC560094AAA4 /* cc.javelin.colloquy.plist in Resources */ = {isa = PBXBuildFile; fileRef = F5BC17DD019655DC01A35792 /* cc.javelin.colloquy.plist */; }; 
     116                1CB2CD18052DDC560094AAA4 /* info.colloquy.plist in Resources */ = {isa = PBXBuildFile; fileRef = F5BC17DD019655DC01A35792 /* info.colloquy.plist */; }; 
    117117                1CB2CD19052DDC560094AAA4 /* info.tif in Resources */ = {isa = PBXBuildFile; fileRef = F5BC17DF019656E901A35792 /* info.tif */; }; 
    118118                1CB2CD1A052DDC560094AAA4 /* download.tif in Resources */ = {isa = PBXBuildFile; fileRef = F51A4F3101C2ED2C01EE70DE /* download.tif */; }; 
     
    601601                1CABFD0C0658629200801C15 /* JVStyle.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JVStyle.h; sourceTree = "<group>"; }; 
    602602                1CABFD0D0658629200801C15 /* JVStyle.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = JVStyle.m; sourceTree = "<group>"; }; 
    603                 1CB2CD8C052DDC570094AAA4 /* Colloquy.app */ = {isa = PBXFileReference; includeInIndex = 0; lastKnownFileType = wrapper.application; path = Colloquy.app; sourceTree = BUILT_PRODUCTS_DIR; }; 
     603                1CB2CD8C052DDC570094AAA4 /* Colloquy.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Colloquy.app; sourceTree = BUILT_PRODUCTS_DIR; }; 
    604604                1CB3716F060CC7E200F6A81F /* KABubbleWindowController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KABubbleWindowController.h; sourceTree = "<group>"; }; 
    605605                1CB37170060CC7E200F6A81F /* KABubbleWindowController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = KABubbleWindowController.m; sourceTree = "<group>"; }; 
     
    901901                F5A6089B0197A3BB01A35792 /* magic.tif */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; name = magic.tif; path = "Resources/Toolbar Icons/magic.tif"; sourceTree = "<group>"; }; 
    902902                F5B425E9038C056701000102 /* edit.tif */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; name = edit.tif; path = "Resources/Toolbar Icons/edit.tif"; sourceTree = SOURCE_ROOT; }; 
    903                 F5BC17DD019655DC01A35792 /* cc.javelin.colloquy.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist; name = cc.javelin.colloquy.plist; path = Resources/cc.javelin.colloquy.plist; sourceTree = "<group>"; }; 
     903                F5BC17DD019655DC01A35792 /* info.colloquy.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; name = info.colloquy.plist; path = Resources/info.colloquy.plist; sourceTree = "<group>"; }; 
    904904                F5BC17DF019656E901A35792 /* info.tif */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; name = info.tif; path = Resources/info.tif; sourceTree = "<group>"; }; 
    905905                F5BEC20701F13A8601EE70DE /* person-idle.tif */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; name = "person-idle.tif"; path = "Resources/person-idle.tif"; sourceTree = "<group>"; }; 
     
    14681468                                F5394C090378E44D01A35792 /* InfoPlist.strings */, 
    14691469                                F5394C0B0378E44D01A35792 /* Localizable.strings */, 
    1470                                 F5BC17DD019655DC01A35792 /* cc.javelin.colloquy.plist */, 
     1470                                F5BC17DD019655DC01A35792 /* info.colloquy.plist */, 
    14711471                                1CBECDCF0508C8AB000001C8 /* default.xsl */, 
    14721472                                0A5B683E0810EC9700398D5A /* default.css */, 
     
    19741974                                1CB2CD13052DDC560094AAA4 /* voice.tif in Resources */, 
    19751975                                1CB2CD17052DDC560094AAA4 /* encoding.tif in Resources */, 
    1976                                 1CB2CD18052DDC560094AAA4 /* cc.javelin.colloquy.plist in Resources */, 
     1976                                1CB2CD18052DDC560094AAA4 /* info.colloquy.plist in Resources */, 
    19771977                                1CB2CD19052DDC560094AAA4 /* info.tif in Resources */, 
    19781978                                1CB2CD1A052DDC560094AAA4 /* download.tif in Resources */, 
  • trunk/Importer/Info.plist

    r2672 r3041  
    1212                        <key>LSItemContentTypes</key> 
    1313                        <array> 
    14                                 <string>cc.javelin.colloquy.colloquytranscript</string> 
     14                                <string>info.colloquy.transcript</string> 
    1515                        </array> 
    1616                </dict> 
     
    2323        <string></string> 
    2424        <key>CFBundleIdentifier</key> 
    25         <string>cc.javelin.colloquyImporter</string> 
     25        <string>info.colloquy.metadata-importer</string> 
    2626        <key>CFBundleInfoDictionaryVersion</key> 
    2727        <string>6.0</string> 
  • trunk/Importer/schema.xml

    r2578 r3041  
    11<?xml version="1.0" encoding="UTF-8"?> 
    22<schema version="1.0" xmlns="http://www.apple.com/metadata" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.apple.com/metadata file:///System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Resources/MetadataSchema.xsd"> 
    3         <note> 
    4         Schema for additional attributes supplied by the Colloquy importer.            
    5         </note> 
    6  
     3        <note>Schema for additional attributes supplied by the Colloquy importer.</note> 
    74        <types> 
    8                 <type name="cc.javelin.colloquy.colloquytranscript"> 
     5                <type name="info.colloquy.transcript"> 
    96                        <allattrs> 
    107                                kMDItemTitle 
  • trunk/Resources/Info-ChatCore.plist

    r2185 r3041  
    1414        <string></string> 
    1515        <key>CFBundleIdentifier</key> 
    16         <string>cc.javelin.chatCore</string> 
     16        <string>info.colloquy.chatCore</string> 
    1717        <key>CFBundleInfoDictionaryVersion</key> 
    1818        <string>6.0</string> 
  • trunk/Resources/Info-StandardCommands.plist

    r2185 r3041  
    1414        <string></string> 
    1515        <key>CFBundleIdentifier</key> 
    16         <string>cc.javelin.colloquy.standard-commands</string> 
     16        <string>info.colloquy.standard-commands</string> 
    1717        <key>CFBundleInfoDictionaryVersion</key> 
    1818        <string>6.0</string> 
  • trunk/Resources/Info.plist

    r3007 r3041  
    1616                        <string>Generic.icns</string> 
    1717                        <key>CFBundleTypeName</key> 
    18                         <string>Chat Style</string> 
     18                        <string>Chat style</string> 
    1919                        <key>CFBundleTypeOSTypes</key> 
    2020                        <array> 
     
    2323                        <key>CFBundleTypeRole</key> 
    2424                        <string>None</string> 
    25                         <key>LSItemContentTypes</key> 
    26                         <array> 
    27                                 <string>cc.javelin.colloquy.colloquystyle</string> 
    28                         </array> 
    2925                        <key>LSTypeIsPackage</key> 
    3026                        <true/> 
     
    3935                        <string>Generic.icns</string> 
    4036                        <key>CFBundleTypeName</key> 
    41                         <string>Chat Emoticons</string> 
     37                        <string>Chat emoticons</string> 
    4238                        <key>CFBundleTypeOSTypes</key> 
    4339                        <array> 
     
    4642                        <key>CFBundleTypeRole</key> 
    4743                        <string>None</string> 
    48                         <key>LSItemContentTypes</key> 
    49                         <array> 
    50                                 <string>cc.javelin.colloquy.colloquyemoticons</string> 
    51                         </array> 
    5244                        <key>LSTypeIsPackage</key> 
    5345                        <true/> 
     
    6658                        </array> 
    6759                        <key>CFBundleTypeName</key> 
    68                         <string>Chat Transcript</string> 
     60                        <string>Chat transcript</string> 
    6961                        <key>CFBundleTypeOSTypes</key> 
    7062                        <array> 
     
    7365                        <key>CFBundleTypeRole</key> 
    7466                        <string>Viewer</string> 
    75                         <key>LSItemContentTypes</key> 
    76                         <array> 
    77                                 <string>cc.javelin.colloquy.colloquytranscript</string> 
    78                         </array> 
    7967                </dict> 
    8068        </array> 
     
    8674        <string>Colloquy</string> 
    8775        <key>CFBundleIdentifier</key> 
    88         <string>cc.javelin.colloquy</string> 
     76        <string>info.colloquy</string> 
    8977        <key>CFBundleInfoDictionaryVersion</key> 
    9078        <string>6.0</string> 
     
    138126                        </array> 
    139127                        <key>UTTypeDescription</key> 
    140                         <string>Chat Style</string> 
     128                        <string>Chat style</string> 
    141129                        <key>UTTypeIconFile</key> 
    142130                        <string>Generic.icns</string> 
    143131                        <key>UTTypeIdentifier</key> 
    144                         <string>cc.javelin.colloquy.colloquystyle</string> 
     132                        <string>info.colloquy.style</string> 
    145133                        <key>UTTypeReferenceURL</key> 
    146                         <string>http://www.colloquy.info/</string> 
     134                        <string>http://colloquy.info</string> 
    147135                        <key>UTTypeTagSpecification</key> 
    148136                        <dict> 
     
    162150                        </array> 
    163151                        <key>UTTypeDescription</key> 
    164                         <string>Chat Emoticons</string> 
     152                        <string>Chat emoticons</string> 
    165153                        <key>UTTypeIconFile</key> 
    166154                        <string>Generic.icns</string> 
    167155                        <key>UTTypeIdentifier</key> 
    168                         <string>cc.javelin.colloquy.colloquyemoticons</string> 
     156                        <string>info.colloquy.emoticons</string> 
    169157                        <key>UTTypeReferenceURL</key> 
    170                         <string>http://www.colloquy.info/</string> 
     158                        <string>http://colloquy.info</string> 
    171159                        <key>UTTypeTagSpecification</key> 
    172160                        <dict> 
     
    183171                        <key>UTTypeConformsTo</key> 
    184172                        <array> 
     173                                <string>public.data</string> 
    185174                                <string>public.xml</string> 
    186175                        </array> 
    187176                        <key>UTTypeDescription</key> 
    188                         <string>Chat Transcript</string> 
     177                        <string>Chat transcript</string> 
    189178                        <key>UTTypeIconFile</key> 
    190179                        <string>Generic.icns</string> 
    191180                        <key>UTTypeIdentifier</key> 
    192                         <string>cc.javelin.colloquy.colloquytranscript</string> 
     181                        <string>info.colloquy.transcript</string> 
    193182                        <key>UTTypeReferenceURL</key> 
    194                         <string>http://www.colloquy.info/</string> 
     183                        <string>http://colloquy.info</string> 
    195184                        <key>UTTypeTagSpecification</key> 
    196185                        <dict> 
     
    202191                                        <string>colloquytranscript</string> 
    203192                                </array> 
     193                                <key>public.mime-type</key> 
     194                                <array> 
     195                                        <string>application/x-colloquy-transcript</string> 
     196                                        <string>application/xml</string> 
     197                                </array> 
    204198                        </dict> 
    205199                </dict> 
  • trunk/main.m

    r2950 r3041  
    1010        xmlLoadExtDtdDefaultValue = 1; 
    1111 
     12        NSAutoreleasePool *pool = [[NSAutoreleasePool allocWithZone:nil] init]; 
     13 
     14        NSString *newPreferencesPath = [@"~/Library/Preferences/info.colloquy.plist" stringByExpandingTildeInPath]; 
     15        if( ! [[NSFileManager defaultManager] fileExistsAtPath:newPreferencesPath] ) { 
     16                NSString *oldPreferencesPath = [@"~/Library/Preferences/cc.javelin.colloquy.plist" stringByExpandingTildeInPath]; 
     17                [[NSFileManager defaultManager] movePath:oldPreferencesPath toPath:newPreferencesPath handler:nil]; 
     18        } 
     19 
     20        [pool release]; 
     21 
    1222        int ret = NSApplicationMain( count, arg ); 
    1323