Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion custom options during save in a document app

Received: by 10.66.74.39 with SMTP id q7mr1670336pav.29.1348820915106;
        Fri, 28 Sep 2012 01:28:35 -0700 (PDT)
Path: t10ni23591388pbh.0!nntp.google.com!news.glorb.com!usenet.stanford.edu!not-for-mail
From: Riccardo Mottola <riccardo.mott...@libero.it>
Newsgroups: gnu.gnustep.discuss
Subject: custom options during save in a document app
Date: Fri, 28 Sep 2012 10:28:06 +0200
Lines: 25
Approved: discuss-gnus...@gnu.org
Message-ID: <mailman.9909.1348820914.855.discuss-gnustep@gnu.org>
NNTP-Posting-Host: lists.gnu.org
Mime-Version: 1.0
X-Trace: usenet.stanford.edu 1348820914 29874 208.118.235.17 (28 Sep 2012 08:28:34 GMT)
X-Complaints-To: action@cs.stanford.edu
To: discuss-gnus...@gnu.org
Envelope-to: discuss-gnus...@gnu.org
X-CTCH-Spam: Unknown
X-CTCH-RefID: str=0001.0A0B0209.50655FA5.01A1,ss=1,re=0.000,fgs=0
X-libjamoibt: 1823
User-Agent: Mozilla/5.0 (X11; Linux ppc;
	rv:10.0.6esrpre) Gecko/20120803 Firefox/10.0.6esrpre Iceape/2.7.6
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 212.52.84.112
X-BeenThere: discuss-gnus...@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the GNUstep programming environment
	<discuss-gnustep.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/discuss-gnustep>,
	<mailto:discuss-gnustep-requ...@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/discuss-gnustep>
List-Post: <mailto:discuss-gnus...@gnu.org>
List-Help: <mailto:discuss-gnustep-requ...@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/discuss-gnustep>,
	<mailto:discuss-gnustep-requ...@gnu.org?subject=subscribe>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi,

I want to handle two different filetypes during save in a document based 
application. For one of the type I need an option view in the panel to 
set some parameters.

I did that in a "standard" application. There it is easy: I have a save 
method which has the task to create and display the save panel, so it 
can instantiate it, add the view, read the parameters and perform the 
save by directly writing the file.

In my doc-based app however, I have a document and a window controller.
To save I have overidden "dataRepresentationOfType" (actual work) and 
"saveDocumentAs" (to add the file extension, nothing more).

dataRepresentationOfType is fine for now: currently type is "TIFF". 
Adding "JPEG" is trivial. I need however the compression rate, somehow 
an additional parameter.

But where/how can I add my view to the panel and handle its parameter? 
Can I override a method I do not see or do i need to throw-away part of 
what document-based apps offer me?

Riccardo