public static NSString getGlobalString(String globalVarName) { return getGlobalString("AppKit", globalVarName); } }
@Override public String toString() { return Foundation.toString(id()); }
private static NSArray toNSArray(final String... strings) { if (strings == null) { return null; } NSObject[] types = new NSObject[strings.length]; for (int i = 0; i < strings.length; i++) { types[i] = NSString.stringWithString(strings[i]); } return NSArray.CLASS.arrayWithObjects(types); }
public enum CommandDelimiterProperty implements NativeEnum<NSString>{ Prefix, Suffix; private final NSString value = NSString.getGlobalString(NSSpeechCommand.class.getSimpleName() + name()); public NSString getNativeValue() { return value; } }
/** Speak the given string to a file * @param text the text to speak * @param uri a file URI indicating where to send output to * @return true if the synthesis began successfully */ public boolean startSpeakingStringToURL(String text, URI uri) { return startSpeakingString_toURL(NSString.stringWithString(text), NSURL.CLASS.URLWithString(uri.toString())); }
public Entry(final String spelling, final String phonemes) { this(NSMutableDictionary.dictionaryWithObjectsAndKeys( NSString.stringWithString(phonemes), DictionaryEntryProperty.Phonemes.getNativeValue(), NSString.stringWithString(spelling), DictionaryEntryProperty.Spelling.getNativeValue(), null) ); } public String getSpelling() {
/** Set the value associated with the given key. * @param key the key whose value will be set * @param value the value to set */ public void setString(E key, String value) { data.setValue_forKey(NSString.stringWithString(value), key.getNativeValue()); }
NSString.stringWithString(appName), toNSArray(allNotes), toNSArray(defNotes), NSString.stringWithString(GROWL_APP_NAME), NSString.stringWithString(GROWL_NOTIFICATIONS_ALL), NSString.stringWithString(GROWL_NOTIFICATIONS_DEFAULT), appImage != null ? NSString.stringWithString(GROWL_APP_ICON) : null );
noteDict.setValue_forKey(NSString.stringWithString(inNotificationName), GROWL_NOTIFICATION_NAME); noteDict.setValue_forKey(inTitle != null ? NSString.stringWithString(inTitle) : null, GROWL_NOTIFICATION_TITLE); noteDict.setValue_forKey(inDescription != null ? NSString.stringWithString(inDescription) : null, GROWL_NOTIFICATION_DESCRIPTION); noteDict.setValue_forKey(NSString.stringWithString(appName), GROWL_APP_NAME); if (inIcon != null) { noteDict.setValue_forKey(inIcon.TIFFRepresentation(), GROWL_NOTIFICATION_ICON); noteDict.setValue_forKey(NSString.stringWithString(inIdentifier), GROWL_NOTIFICATION_IDENTIFIER);