Ignore:
Timestamp:
05/09/05 04:16:56 (19 years ago)
Author:
Nicholas Riley
Message:

ICeCoffEEAction.c: Replace undocumented _LSCopyApplicationURLsForItemURL
with LSCopyApplicationURLsForURL, which was introduced in 10.3.

ICFindFilesToRemove/UICookieMonster.m: Fix some minor bugs revealed by
new compiler warnings in Apple's GCC 4.0.

ICeCoffEETextEdit.c: Pass an unsigned long instead of a SInt32 to
Delay(), as intended (another GCC 4.0 nit-pick).

English.lproj/InfoPlist.strings: Update version number.

ICeCoffEEShared.h: Enable debugging.

ICeCoffEE APE.xcode: Changes for Xcode 2.0.

ICeCoffEE.m: Casts to satisfy GCC 4.0.

APEMain.m: Fix CFStringCompare third argument: options, not a pointer.
Yet another dumb coding mistake pointed out courtesy of GCC 4.0.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ICeCoffEE/ICeCoffEE/ICeCoffEEAction.c

    r106 r181  
    1212#include "ICeCoffEEShared.h"
    1313#include "ICeCoffEEBookmarks.h"
    14 
    15 /* thanks to Slava Karpenko for this one! */
    16 OSStatus _LSCopyApplicationURLsForItemURL(CFURLRef inURL, LSRolesMask inRoleMask, CFArrayRef *outApps); // outApps to be CFReleased()
    1714
    1815#define THROW_ERR(e) { err = e; goto END; }
     
    159156    OSStatus err;
    160157   
    161     if ( (err = _LSCopyApplicationURLsForItemURL(url, kLSRolesAll, &appURLsUnsorted)) != noErr)
    162         THROW_ERR(err);
     158    appURLsUnsorted = LSCopyApplicationURLsForURL(url, kLSRolesAll);
    163159
    164160    CFIndex appCount = 0;
     
    297293                           &startIndex, &endIndex, h)) != noErr) THROW_ERR(err);
    298294
    299     if ( (url = CFURLCreateWithBytes(NULL, *h, GetHandleSize(h), kCFStringEncodingASCII,
     295    if ( (url = CFURLCreateWithBytes(NULL, (const UInt8 *)*h, GetHandleSize(h), kCFStringEncodingASCII,
    300296                                     NULL)) == NULL) THROW_ERR(paramErr);
    301297
Note: See TracChangeset for help on using the changeset viewer.