Newbie squeak question
Dwight Hughes
dwighth at ipa.net
Fri Jul 2 23:41:14 UTC 1999
Double-click just inside one of the double quotes of
"X509CertificateBrowser open" to select the contents and doIt (on a PC,
type Alt-d (or right-click and select "do it" from the popup menu); on a
Mac, type Command-d (or Option-click to get the menu -- or notice the
small "button" at the top of the popout scrollbar for the code pane -
put the mouse pointer on it and you will see a tiny menu icon, click to
get the menu).
This will send the message "open" to "X509CertificateBrowser" and you
should be in business.
-- Dwight
Jeff Carr wrote:
>
> I am trying to use a file from Dr. Dobbs Journal to view X.509 certs
> (x509.st) -- it can be found on their web page. This is from the class
> X509CertificateBrowser.
>
> open
> "Open a view of an instance of me on the default directory."
> "X509CertificateBrowser open"
> | dir aFileList topView volListView fileListView fileContentsView |
>
> dir _ FileDirectory default.
> aFileList _ self new directory: dir.
> topView _ StandardSystemView new.
> topView
> model: aFileList;
> label: 'X509 Certificate Browser';
> minimumSize: 200 at 500.
> topView borderWidth: 1.
>
> volListView _ PluggableListView on: aFileList
> list: #volumeList
> selected: #volumeListIndex
> changeSelected: #volumeListIndex:
> menu: #volumeMenu:.
> volListView autoDeselect: false.
> volListView window: (0 at 0 extent: 80 at 40).
> topView addSubView: volListView.
>
> fileListView _ PluggableListView on: aFileList
> list: #fileList
> selected: #fileListIndex
> changeSelected: #fileListIndex:
> menu: #fileListMenu:.
> fileListView window: (0 at 0 extent: 120 at 40).
> topView addSubView: fileListView toRightOf: volListView.
> fileListView controller terminateDuringSelect: true. "Pane to left may
> change under scrollbar"
>
> fileContentsView _ PluggableTextView on: aFileList
> text: #contents accept: #put:
> readSelection: #contentsSelection menu: #fileContentsMenu:shifted:.
> fileContentsView window: (0 at 0 extent: 200 at 140).
> topView addSubView: fileContentsView below: volListView.
>
> topView controller open.
>
> > -----Original Message-----
> > From: Dwight Hughes [mailto:dwighth at ipa.net]
> > Sent: Friday, July 02, 1999 3:00 PM
> > To: squeak at cs.uiuc.edu
> > Subject: Re: Newbie squeak question
> >
> >
> > Look for a message selector starting with "open" in the class methods of
> > what you filed in, or see if there is an "example" method, or if the
> > class comment includes an example of its use (click the "?" button in
> > the System Browser with the class selected). Look for something like
> > what is used to open a generic System Browser: "Browser openBrowser".
> >
> > Um, some more details about what you are filing in?
> >
> > -- Dwight
> >
> > Jeff Carr wrote:
> > >
> > > Ok I give up --- I am missing something very basic. When in a squeak
> > > project, I can FileIn a *.st file. Then what? I can view the class
> > > structure, etc --- but how do I build something that executes? The *.st
> > > file I have should result in a new browser type, with special
> > functionality.
> >
> >
More information about the Squeak-dev
mailing list
|