# HG changeset patch # User Adrian Robert # Date 1254066566 0 # Node ID 4d1103e3ad15c1a0e08d58f8d7e7cdf5e446b6a1 # Parent e7ce441fd3b3a41f9e14e63b3e558c69d063bd3e (ns_set_name_iconic, ns_set_name, ns_set_name_as_filename, x-create-frame, ns-get-resource, ns-set-resource): Use ns_app_name instead of NSProcessInfo call. diff -r e7ce441fd3b3 -r 4d1103e3ad15 src/nsfns.m --- a/src/nsfns.m Sun Sep 27 15:49:08 2009 +0000 +++ b/src/nsfns.m Sun Sep 27 15:49:26 2009 +0000 @@ -501,8 +501,7 @@ name = f->icon_name; if (NILP (name)) - name = build_string - ([[[NSProcessInfo processInfo] processName] UTF8String]); + name = build_string([ns_app_name UTF8String]); else CHECK_STRING (name); @@ -542,8 +541,7 @@ return; if (NILP (name)) - name = build_string - ([[[NSProcessInfo processInfo] processName] UTF8String]); + name = build_string([ns_app_name UTF8String]); f->name = name; @@ -635,8 +633,7 @@ name = f->icon_name; if (NILP (name)) - name = build_string - ([[[NSProcessInfo processInfo] processName] UTF8String]); + name = build_string([ns_app_name UTF8String]); else CHECK_STRING (name); @@ -1130,8 +1127,7 @@ be set. */ if (EQ (name, Qunbound) || NILP (name) || (XTYPE (name) != Lisp_String)) { - f->name - = build_string ([[[NSProcessInfo processInfo] processName] UTF8String]); + f->name = build_string ([ns_app_name UTF8String]); f->explicit_name =0; } else @@ -1499,9 +1495,7 @@ check_ns (); if (NILP (owner)) - owner = build_string - ([[[NSProcessInfo processInfo] processName] UTF8String]); - /* CHECK_STRING (owner); this should be just "Emacs" */ + owner = build_string([ns_app_name UTF8String]); CHECK_STRING (name); /*fprintf (stderr, "ns-get-resource checking resource '%s'\n", SDATA (name)); */ @@ -1524,9 +1518,7 @@ { check_ns (); if (NILP (owner)) - owner - = build_string ([[[NSProcessInfo processInfo] processName] UTF8String]); - CHECK_STRING (owner); + owner = build_string ([ns_app_name UTF8String]); CHECK_STRING (name); if (NILP (value)) {