discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: custom options during save in a document app


From: Riccardo Mottola
Subject: Re: custom options during save in a document app
Date: Mon, 08 Oct 2012 20:32:26 +0200
User-agent: GNUMail (Version 1.2.0)

Hi,

On 2012-10-08 14:42:58 +0200 Wolfgang Lux <wolfgang.lux@gmail.com> wrote:

So, my idea (not spelled out explicitly) is that you override -runModalSavePanel:withAccessoryView: to customize the accessory view under GNUstep and to use -prepareSavePanel: to customize it under Cocoa when -accessoryView returns a non-nil view.

If I run the patch which I attached in my other mail on mac 10.4, I get:

2012-10-08 20:21:24.278 PRICE[327] *** WARNING: Method fileNameFromRunningSavePanelForSaveOperation: in class MyDocument is obsolete and will be removed in release GM *** 2012-10-08 20:21:24.541 PRICE[327] runModalSavePanel: withAccessoryView. We should see this only on GS
2012-10-08 20:21:24.542 PRICE[327] set type to Jpeg
2012-10-08 20:21:24.560 PRICE[327] prepareSavePanel, original accessory view class: NSBox 2012-10-08 20:21:24.561 PRICE[327] original content view: <NSView: 0x4155f0>
2012-10-08 20:21:24.561 PRICE[327] new options view: <NSBox: 0x4d4bf0>


and it even works.. it is interesting that prepareSavePaenl is in that case NOT called, the output is different than on GS. 10.4 is old, but quite newer than GM :) I think I still have GM around...

reopening the panel obviously doesn't work, I wouldn't expect that.

Riccardo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]