NSReturnSign Missing in Openstep 4.2

NeXT Computer, Inc. -> Porting New Software

Title: NSReturnSign Missing in Openstep 4.2
Post by: Rob Blessin Black Hole on August 13, 2014, 02:15:13 AM
Hello NeXT Community : I thought I would try some of the Openstep 4.2 Developer Tutorials and I have rediscovered a  bug in the tutorial. I have a clean install of Openstep 4.2 User, developer and Y2k patches on Virtual Box

This is a link to the Tutorial:
http://lisp.gotgeeks.com/Documentation/OPENSTEP/NextDev/TasksAndConcepts/DeveloperTutorials/2_CurrencyConverter/B_CurrencyConverter_CreateIF.htmld/

On Step 9 under the Currency Converter.nib window  it asks for you to drag and drop the NSReturnSign  onto the button  but the NSReturnSign image is missing and thus stymies the tutorial midstride.

I'm guessing from long trail gone cold complaints no one really solved this one.... but my guess is as it was not in Openstep 4.1 or 4.2  or RDR1 that it either was in 4.0 or earlier and mistakenly or otherwise dropped kind of like the cover sheet for faxes in 4.2 a mystery.

I'm thinking if I can find it on an earlier iso I should be able to drop it in or may be I did something else wrong as the tutorial is not real well written. I've had to improvise through a few steps. I can only imagine how heated developers were in 1997 during the initial transition as this was the first tutorial creating a path to Rhapsody then  OSX .

If someone has been there done that and knows an easy fix please let me know as I think it is just a matter of dragging and dropping the NSReturnSign  file into the right location and then I'm in business.

:arrow:
Title: NSReturnSign Missing in Openstep 4.2
Post by: verdraith on October 07, 2015, 02:31:36 PM
Sorry to necro this post, I don't often google for my own web site.

NSReturnSign was a visual clue as to what would occur if the user hit the return key, but with OS4 the paradigm changed.  Now one simply sets the 'key' property to \r (apparently this is to do with the fact NeXT changed to a keyboard-based UI where one could tab around between controls in a panel or window)

Also, re the documentation.  It does feel rather rushed in OS4.x.  There's even some screengrabs of NS4.0 used in some of the help topics.

Originally, I said this:
QuoteOf course if, like me, you prefer NSReturnSign, you can grab it from NS3.3.  Simply put the image in a folder of your choice, and drag it into the Images pane in IB when you need it (but still set 'key' to \r)
However, I was wrong.

It turns out that the images are part of /usr/lib/NextStep/Resources/SharedGray.tiff which is present on OPENSTEP, but useless for what we want.

So, with that in mind, and with some quick hackery in IconMaker, here is NSReturnSign in all its glory.

http://lisp.gotgeeks.com/Resources/NSReturnSign/

You'll want both.  One for the normal image, and the other for the highlighted image.
Title: Re: NSReturnSign Missing in Openstep 4.2
Post by: pTeK on August 10, 2024, 06:42:19 PM
From the following comp.sys.next.programmer (https://groups.google.com/g/comp.sys.next.programmer/c/nAqVV1S72f0) date 12 March 2000. (web.archive.org) (https://web.archive.org/web/20240810231644/https://groups.google.com/g/comp.sys.next.programmer/c/nAqVV1S72f0)

Quote from: Joerg KollmannThe tutorial seems to be written for an older version of OPENSTEP.
Since version 4.2, you shouldn't use the return key as an explicit
keyboard shortcut for a button, because you can select buttons using
the tab key and then use return to activate the selected button.
If you want to use it anyway, you can get the return icon back into
InterfaceBuilder's images tab by using Edit.app, opening
/NextDeveloper/Apps/InterfaceBuilder.app/Resources/images.plist and
adding a line with ",NSReturnSign".

From the above links I provided, poster "nobody" asked a similar question to @Rob Blessin Black Hole I believe the above answer will be useful to people on this forum. (Yes this necro post is just under 10 years old by two days (New Zealand Time)).

EDIT: File location in bold and it works. Sorry no screen shot provided to save @Nitro bandwidth.

Go to top  Forum index