From patchwork Mon Apr 22 20:29:48 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 16328 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f197.google.com (mail-vc0-f197.google.com [209.85.220.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A2CDA23919 for ; Mon, 22 Apr 2013 20:30:50 +0000 (UTC) Received: by mail-vc0-f197.google.com with SMTP id hf12sf13049344vcb.4 for ; Mon, 22 Apr 2013 13:30:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-beenthere:x-received:received-spf :x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=Htx5zjB57WAnYdp1FpMsdrqmSLdFT/54WE7BFHFjnhU=; b=abOA7dvMNYqZkDxH1dL33a0b+RFi6iHlk3c3yndyLenAv/v+uH/4Iuz9CGUOC2pbxQ PVy7cKRDTOA7DPfzPprQrsZmffxsD6OKm0OlK1kIOvQNmP+QuiA4EZQTC05ttDFMxp12 KvQtfdO5DhyALzfFyqxtrGBdC0J7NuS5GBGnVCyPm73pW5juTU4RQRTnogLKZuRq5UeF SfvMeQrldkgmtJS10DFNqVC7MqMphRb7m67BU2omKc7effJEgrPP1bJTCcCpzs0v8Yii mqNGp5iHu8ev+BoH27fHglTOWCgWYACCS613yPn72WCIgEGMC1oRUMbulFFvdwDh4uCd rCcQ== X-Received: by 10.236.14.233 with SMTP id d69mr13766814yhd.51.1366662603446; Mon, 22 Apr 2013 13:30:03 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.58.172 with SMTP id s12ls16892qeq.18.gmail; Mon, 22 Apr 2013 13:30:03 -0700 (PDT) X-Received: by 10.52.69.49 with SMTP id b17mr17043830vdu.130.1366662603268; Mon, 22 Apr 2013 13:30:03 -0700 (PDT) Received: from mail-vb0-x22b.google.com (mail-vb0-x22b.google.com [2607:f8b0:400c:c02::22b]) by mx.google.com with ESMTPS id ex4si16826445vdb.14.2013.04.22.13.30.03 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 22 Apr 2013 13:30:03 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::22b is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c02::22b; Received: by mail-vb0-f43.google.com with SMTP id q12so6229094vbe.16 for ; Mon, 22 Apr 2013 13:30:03 -0700 (PDT) X-Received: by 10.52.163.231 with SMTP id yl7mr17269918vdb.57.1366662603155; Mon, 22 Apr 2013 13:30:03 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.58.127.98 with SMTP id nf2csp93409veb; Mon, 22 Apr 2013 13:30:02 -0700 (PDT) X-Received: by 10.68.216.165 with SMTP id or5mr34418645pbc.152.1366662596263; Mon, 22 Apr 2013 13:29:56 -0700 (PDT) Received: from mnementh.archaic.org.uk (1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.d.1.0.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:1d0::1]) by mx.google.com with ESMTPS id xw2si23338781pbb.222.2013.04.22.13.29.55 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 22 Apr 2013 13:29:55 -0700 (PDT) Received-SPF: neutral (google.com: 2001:8b0:1d0::1 is neither permitted nor denied by best guess record for domain of pm215@archaic.org.uk) client-ip=2001:8b0:1d0::1; Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.72) (envelope-from ) id 1UUNMz-0004lw-BQ; Mon, 22 Apr 2013 21:29:49 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org, =?UTF-8?q?Andreas=20F=C3=A4rber?= , Anthony Liguori Subject: [PATCH v3 3/4] ui/cocoa.m: Avoid deprecated NSOpenPanel filename method Date: Mon, 22 Apr 2013 21:29:48 +0100 Message-Id: <1366662589-18315-4-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1366662589-18315-1-git-send-email-peter.maydell@linaro.org> References: <1366662589-18315-1-git-send-email-peter.maydell@linaro.org> X-Gm-Message-State: ALoCoQnDf8K6sJPB2RL/LKePbswDQ5WPQzOWG1QspLT7Uz8812a+bUXpwep4x0vEoL1UlJ64UewG X-Original-Sender: peter.maydell@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c02::22b is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Avoid the NSOpenPanel filename method (deprecated in MacOSX 10.6) in favour of using the URL method and extracting the path from the resulting NSUrl object. Signed-off-by: Peter Maydell --- ui/cocoa.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/cocoa.m b/ui/cocoa.m index e3e1204..9ff688d 100644 --- a/ui/cocoa.m +++ b/ui/cocoa.m @@ -810,7 +810,7 @@ QemuCocoaView *cocoaView; exit(0); } else if(returnCode == NSOKButton) { const char *bin = "qemu"; - char *img = (char*)[ [ sheet filename ] cStringUsingEncoding:NSASCIIStringEncoding]; + char *img = (char*)[ [ [ sheet URL ] path ] cStringUsingEncoding:NSASCIIStringEncoding]; char **argv = (char**)malloc( sizeof(char*)*3 );