From: <HIDDEN>
Path: news.mathworks.com!newsfeed-00.mathworks.com!webcrossing
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to add a new property to a handle?
Message-ID: <ef537ba.11@webcrossing.raydaftYaTP>
Date: Fri, 20 Apr 2007 03:32:52 -0400
References: <ef537ba.3@webcrossing.raydaftYaTP> <ef537ba.4@webcrossing.raydaftYaTP> <ef537ba.5@webcrossing.raydaftYaTP> <ef537ba.9@webcrossing.raydaftYaTP> <ef537ba.10@webcrossing.raydaftYaTP>
Lines: 22
NNTP-Posting-Host: 80.178.76.226
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Xref: news.mathworks.com comp.soft-sys.matlab:404303



Odd... Let's summarize the known issues with schema.prop so far. If
anyone has more issues or solutions/workaround please post them here:

1. You can't get or set new properties together with original ones,
although you can get/set multiple new props simultaneously if they
are not specified with any original ones:

set(h,'newProp',5,'visible','on'); %fails
set(h,'newProp',5,'newProp2',7); %ok
get(h,{'newProp','visible'}); %fails
get(h,{'newProp','newProp2'}); %ok

2. You can't see new props in get(h) or set(h), although you can see
them in get(handle(h)) or set(handle(h)) [unless of course you set
their sp.Visible to 'off'].

3. You can't see new props (and many original ones as well BTW) in
inspect(h) nor inspect(handle(h)). I suspect this is due to the fact
that there is no java BeanInfo for the inspector to introspect them,
but it's a wild guess and it's no solution anyway.

Yair Altman