Hi,

On 2012-10-08 14:42:58 +0200 Wolfgang Lux <[email protected]> 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


_______________________________________________
Discuss-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to