Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Hair Pulling with my first stab at IB! (please help :-))

0 views
Skip to first unread message

jroe...@compusmart.ab.ca

unread,
Jun 8, 1997, 3:00:00 AM6/8/97
to

Hi Folks,

First off, I'm a real OpenStep developer newbie... but I'm
very pumped about shedding that status ASAP!

I'm also a bit stubborn... here's an example:


In the book "Discovering OpenStep: A Developer Tutorial",
on page 27, it says:

"Select the Images display of the nib file window.

Drag the NSReturnSign image to the main window and drop it
over the button.

If you check the attributes of the button in the Inspector
panel, you'll notice two things have been added:
NSReturnSign is now listed as [...]"...


Well friends, I don't have a NSReturnSign icon in the
images display! (OpenStep 4.1 Intel, User+Dev+EOF 2.0)

The picture shows:

NSHighlighted
NSHighlighted...
NSRadioButton
NSReturnSign
NSSwitch

I've got:

NSHighlighted
NSHighlighted...
NSRadioButton
NSSwitch

This sucks! ;-) Where is it? I looked everywhere, and
I can't find it... if I load the project
/NextDeveloper/Examples/AppKit/CurrencyConverter/PB.project
(or whatever it's called) and open the nib file, the
button in the window shows the NSReturnSign icon, and the
button's inspector lists it, but the images display
doesn't have the icon in it! (I've tried resizing and
scrolling the window -- it's not there...)

Does anyone know what the problem is? Installing
OpenStep Developer went fine, I think....

So, I'm stubborn because I don't want to continue until I
know what's up with IB and this NSReturnSign. Now, I'm
pretty sure that the book is at OpenStep 4.0 level, but I
still want to know why I don't have that icon.

My thinking is, "if that's missing, what else might be?".

Can people please check their IB's image displays and
tell me if they have that (on OS 4.1).

And if possible, explain what's going on, and ensure me
that I can/should continue on :-)

I'd really appreciate it.

Thanks a bunch,

Jim Roepcke

PS: If you could cc: your reply to my e-mail address, I'd really
appreciate it... with all the e-mail I read nowadays (mailing
lists), I rarely get time to read usenet :-( This is the first
time in a long time, unfortunately.


Dirk Olmes

unread,
Jun 9, 1997, 3:00:00 AM6/9/97
to

jroe...@compusmart.ab.ca wrote:
> Hi Folks,

Hi,

> Well friends, I don't have a NSReturnSign icon in the
> images display! (OpenStep 4.1 Intel, User+Dev+EOF 2.0)

... well, this is a known "bug" in the new developer releases.

> This sucks! ;-) Where is it? I looked everywhere, and
> I can't find it... if I load the project
> /NextDeveloper/Examples/AppKit/CurrencyConverter/PB.project
> (or whatever it's called) and open the nib file, the
> button in the window shows the NSReturnSign icon, and the
> button's inspector lists it, but the images display
> doesn't have the icon in it! (I've tried resizing and
> scrolling the window -- it's not there...)

No, it is definitely missing. Well, not really. Here's what I found some
months ago:

------------------------ schnipp ---------------------------------------
Hi,

the NSReturnSign seems to have been lost in OpenStep for Mach 4.1 (It
was in fact lost in the 4.0 beta but I assumed it would find it's way
home in the sharp release). I have been able to locate the image in the
file /usr/lib/NextStep/Resources/SharedGray.tiff, but the problem lies
within InterfaceBuilder, namely the file
InterfaceBuilder.app/Resources/images.table where the NSReturnSign
entry is missing. Just add the entry and everything works as it should.

Just our two cents,
Urban and Malte


---
Urban Nilsson, Oops Art: ur...@oops.se, d7u...@dtek.chalmers.se,
u...@cd.chalmers.se, d7u...@mdstud.chalmers.se
Hiroshima 45, Tjernobyl 86, Windows 95
------------------------ schnapp ---------------------------------------

So you just have to edit
/NextDeveloper/Apps/InterfaceBuilder.app/Resources/images.table and add
NSReturnSign. Restart IB and everything should be fine.

BTW:
The image has nothing to to with the functionality: you can still wire an
NSTextField with an NSButton and select the -performClick: method to get the
desired effect.

Hope it helps,

-dirk

---
______________________________________________________________________
Dirk Olmes OBJECT FACTORY
Gesellschaft fuer Informatik und Datenverarbeitung mbH
Otto-Hahn Str. 18, 44227 Dortmund, Germany
Telephon +49 (0) 231 975 137 0
Telefax +49 (0) 231 975 137 99
di...@object-factory.com
http://www.object-factory.com/

Erik M. Buck

unread,
Jun 11, 1997, 3:00:00 AM6/11/97
to

In an vain attempt to play to the masses, NeXT removed the return sign
paradigm and replaced it with the windows like "black bordered" default
selection indication. Just proceed without the return sign.


Art Isbell

unread,
Jun 13, 1997, 3:00:00 AM6/13/97
to

di...@object-factory.com (Dirk Olmes) wrote:

> the NSReturnSign seems to have been lost in OpenStep for Mach 4.1 (It
> was in fact lost in the 4.0 beta but I assumed it would find it's way
> home in the sharp release). I have been able to locate the image in the
> file /usr/lib/NextStep/Resources/SharedGray.tiff, but the problem lies
> within InterfaceBuilder, namely the file
> InterfaceBuilder.app/Resources/images.table where the NSReturnSign
> entry is missing. Just add the entry and everything works as it should.
>
> Just our two cents,
> Urban and Malte
>
>
> ---
> Urban Nilsson, Oops Art: ur...@oops.se, d7u...@dtek.chalmers.se,
> u...@cd.chalmers.se, d7u...@mdstud.chalmers.se
> Hiroshima 45, Tjernobyl 86, Windows 95
> ------------------------ schnapp ---------------------------------------
>
> So you just have to edit
> /NextDeveloper/Apps/InterfaceBuilder.app/Resources/images.table and add
> NSReturnSign. Restart IB and everything should be fine.

No, no, no!!! Don't recommend this sort of hack to new developers. The
NSReturnSign is no longer used to signify the default button - the one that
will be pressed when the RETURN/ENTER key is pressed. Forget about
NSReturnSign.

Instead, enter "\r" as the button's or buttonCell's key in its Attributes
Inspector. At runtime, this will result in a dark border around this button.
--
Art Isbell NeXT/MIME Mail: arti at lava dot net
Trego Systems (for whom I don't speak) Voice/Fax: +1 808 394 0511
OPENSTEP/NT Voice Mail: +1 808 394 0495
managed care solutions US Mail: Honolulu, HI 96825-2638

Dirk Olmes

unread,
Jun 17, 1997, 3:00:00 AM6/17/97
to

ar...@address.in.signature (Art Isbell) wrote:
> >
> > So you just have to edit
> > /NextDeveloper/Apps/InterfaceBuilder.app/Resources/images.table and add
> > NSReturnSign. Restart IB and everything should be fine.
>
> No, no, no!!! Don't recommend this sort of hack to new
> developers. The
> NSReturnSign is no longer used to signify the default button -
> the one that will be pressed when the RETURN/ENTER key is pressed.
> Forget about NSReturnSign.

Since I don't care too much about the windows-like new style I will continue
to use good old NSReturnSign.
The last time we had this question here it was quite hard to explain that
everything will work just fine without the NSReturnSign. So give'em the
answer and everything is fine.

> Instead, enter "\r" as the button's or buttonCell's key in
> its Attributes
> Inspector. At runtime, this will result in a dark border around
> this button.

Yes, but this isn't by far as intuitive as the NSReturnSign. BTW: What if you
enter '\r' in more than one button's key attribute?

-dirk

---
______________________________________________________________________
Dirk Olmes OBJECT FACTORY
Gesellschaft fuer Informatik und Datenverarbeitung mbH
Otto-Hahn Str. 18, 44227 Dortmund, Germany
Telephon +49 (0) 231 975 137 0
Telefax +49 (0) 231 975 137 99
di...@object-factory.com
http://www.object-factory.com/

Hiroshima 45, Tschernobyl 86, Windows 95

0 new messages