Re: [Fxruby-users] getApp() disappeared?
Status: Inactive
Brought to you by:
lyle
|
From: <ly...@kn...> - 2003-11-24 17:15:52
|
On Mon, 24 Nov 2003 16:38:39 +0000 (GMT), Hugh Sasse Staff Elec Eng
<hg...@dm...> wrote :
> OK. ...Incidentally, I don't see that in the rightmost pane of the
> rdocs... addTimeout is followed by append.
The 'app' method is listed as a read-only attribute of the FXId class, on
this page:
http://www.fxruby.org/doc/api/classes/Fox/FXId.html
You are correct that none of the attribute accessor methods (such as
FXId#app) show up in RDoc's "Methods" pane. Perhaps that is a feature
recommendation that could be made to RDoc's developer(s).
> > What kind of object are you trying to call getApp() on? It is only
> > defined for FXDC, FXFileDict, FXIconDict and FXId (and their subclasses,
> > of course).
>
> I substituted @@app the last time it cropped up, and can't remember
> which object it was, but in creating new
> code I saw it again in code I was pasting, so raised the matter
> pre-emptively this time. In this case it is a child of FXId so
> should be OK.
Since 'app' is a (read-only) attribute of the FXId class, you can access its
value using the FXId#app instance method, e.g.
theWindowApp = theWindow.app
or, if you wish, you can use the (undocumented) getApp() method:
theWindowApp = theWindow.getApp()
These are equivalent. There is no FXId class variable named "@@app", nor is
there an FXId instance variable "@app", however.
|