source: releases/ICeCoffEE/1.4.1/ICeCoffEE/ICeCoffEE.h@ 535

Last change on this file since 535 was 167, checked in by Nicholas Riley, 20 years ago

ICeCoffEE 1.4 and preliminary 1.4.1 changes. Sorry, I forgot to
commit version 1.4 when it was released, so the precise source for
that release has been lost.

See the release notes for details of what changed in these versions.
1.4 was a significant feature release; 1.4.1 is a bug fix for 10.3.9,
incorporating up-to-date Unsanity Installer and APE.

package-ICeCoffEE.sh: use xcodebuild instead of pbxbuild.

File size: 2.1 KB
Line 
1/* ICeCoffEE */
2
3#import "ICeCoffEESuper.h"
4#import "ICeCoffEEShared.h"
5#import "ICeCoffEEConfig.h"
6
7#define ICCF_OSErrAssert(err, context) NSAssert(err == noErr, ICCF_ErrString(err, context));
8#define ICCF_OSErrCAssert(err, context) NSCAssert(err == noErr, ICCF_ErrString(err, context));
9
10// search for: (?<!ICCF_LocalizedString\()(?<!ICLog\()(?<!ICapeprintf("\()(?<!%)(@"(?!Internal error: )[^"]+") replace with: ICCF_LocalizedString(\1)
11#define ICCF_LocalizedString(key) \
12 [(NSString *)CFBundleCopyLocalizedString(ICCF_bundle, (CFStringRef)(key), CFSTR(""), NULL) autorelease]
13
14// returns an explanation for the provided OSStatus in the supplied
15// if nil is returned, the error is harmless (e.g., user cancelled)
16NSString *ICCF_ErrString(OSStatus err, NSString *context);
17
18// handles an exception as specified by ICError* preferences
19// if NO is returned, the exception is harmless (e.g., user cancelled)
20BOOL ICCF_HandleException(NSException *e);
21
22// returns YES if the event is a command-mouse down
23BOOL ICCF_EventIsCommandMouseDown(NSEvent *e);
24
25// returns the action determined by the current state of keyboard modifiers
26iccfURLAction ICCF_KeyboardAction();
27
28// throws an exception if the URL range is nonexistent or too big
29void ICCF_CheckRange(NSRange range);
30
31// returns NSCharacterSets representing valid URL delimiters for left and right sides
32void ICCF_Delimiters(NSCharacterSet **leftPtr, NSCharacterSet **rightPtr);
33
34// start Internet Config (before ICCF_LaunchURL)
35void ICCF_StartIC();
36
37// stop Internet Config (after ICCF_LaunchURL)
38void ICCF_StopIC();
39
40// calls ICParseURL, returns output range
41void ICCF_ParseURL(NSString *string, NSRange *range);
42
43// calls ICCF_DoURLAction
44void ICCF_LaunchURL(NSString *string, iccfURLAction action);
45
46// launch URL from on selected text view cursor position or selection
47void ICCF_LaunchURLFromTextView(NSTextView *self);
48
49// returns contextual menu with Services item added, if selected
50NSMenu *ICCF_MenuForEvent(NSView *self, NSMenu *contextMenu, NSEvent *e);
51
52// adds or removes services menu in menu bar
53void ICCF_AddRemoveServicesMenu();
54
55@interface ICeCoffEE : ICeCoffEESuper
56
57@end
Note: See TracBrowser for help on using the repository browser.