Path: news.mathworks.com!not-for-mail
From: "Gary " <grubin698@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Wish List Item - Different Extension for GUIDE figure templates
Date: Wed, 7 May 2008 15:21:04 +0000 (UTC)
Organization: System Planning Corp
Lines: 27
Message-ID: <fvshd0$81q$1@fred.mathworks.com>
Reply-To: "Gary " <grubin698@gmail.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1210173664 8250 172.30.248.37 (7 May 2008 15:21:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 7 May 2008 15:21:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 796077
Xref: news.mathworks.com comp.soft-sys.matlab:467180


I use GUIDE to create GUI layouts, then share data between
functions using getappdata/setappdata using the figure handle

If I accidentally hit CTRL-S while the GUI is the active
window, I end up saving the contents of the plots, controls,
and appdata in the fig file that is associated with the GUI.
 Every time I run the code after that, the figure flashes
with the saved data in the plots before being cleared.
Removing all that saved data is a pain in the neck.

First, a question - is using the figure handle for
getappdata/setappdata considered bad form?  Even if I used
something else, I think that I would still have the problem
of  the plot data saved in the plot ui objects.

Now for the suggestion:  It seems to me that what you're
creating in GUIDE isn't a figure in the same sense as what
you get when you perform a "Save" operation on a figure. 
Instead, it is a template for such a figure.  Why not call
the files created by GUIDE '.fgt' for figure template.  It
seems to better fit the purpose of GUIDE and would have the
added benefit of making it much harder for me to
accidentally save over the GUIDE-generated file.

Am I the only one who's done this?

Gary