ftp.nice.ch/peanuts/GeneralData/Usenet/news/1989/CSN-89.tar.gz#/comp-sys-next/1989/Sep/Open-Panel-help

This is Open-Panel-help in view mode; [Up]


Date: Sun 13-Sep-1989 14:51:50 From: Unknown Subject: Re: Open Panel help >1. I still want to use the OpenPanel to select a *directory*. I can > get the directory if a file is selected, but that is not what I > want. By subclassing -text:isEmpty: (see SavePanel) to do nothing > but return itself, I keep the OK button enabled, and I subclass ... > What I thing I should do is subclass the -ok method (see SavePanel), > which is the target of the ok button of the OpenPanel. The only How about using the SavePanel instead, or just toggle the bitfield in your open panel and you don't have to worry about changing the title. Subclass the ok and put in a bogus filename into the form field. The super will validate the path but accept a new unique name. You snag the filename on the return and rip your bogus filename off the end. -greg. >From: chavez@sumex-aim.stanford.edu (R. Martin Chavez)

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Marcel Waldvogel and Netfuture.ch.