ftp.nice.ch/peanuts/GeneralData/Usenet/news/1989/CSN-89.tar.gz#/comp-sys-next/1989/Jan-Apr/assigning-icon-to-program

This is assigning-icon-to-program in view mode; [Up]


Date: Sun 12-Jan-1989 22:15:59 From: Unknown Subject: assigning icon to program The release notes for the workspace manager contain the following statement: ``Currently, the scheme used to assign icons to applications has the side effect of using that same icon for any file with the same name.'' Trouble is, that is the ONLY mention of aforesaid scheme anywhere in the documentation. So WHAT IS the scheme, and how do I give my very own program my very own icon? >From: ali@polya.Stanford.EDU (Ali T. Ozer)
Date: Sun 13-Jan-1989 15:27:58 From: Unknown Subject: Re: assigning icon to program In article <392@garcon.cso.uiuc.edu> Steve Dorner writes: > ... how do I give my very own program my very own icon? In a previous message I described how to create a "__ICON" segment for an app so that the app would properly launch from the Workspace. Creating an icon just involves drawing the icon and saving it in the __ICON segment of the executable. To create an icon: 1. Run /MyDisk/Programming/Demos/Icon 2. Through "prefs" change icon size to 48x48 (default is 64x64) 3. Be artistic; create your icon, and save with alpha channel as a TIFF file Then create a header file, call it "Foo.header". The file should look like this, assuming your app is call Foo: F<tab>Foo<tab>Foo<tab>1 The file has ONE line, and tabs between the F, Foo, Foo, and 1. Put Carriage Return and the end. Assuming your TIFF file from above is called Foo.tiff, add the following to your LFLAGS (or LDFLAGS) in the Makefile: -segcreate __ICON __tiff Foo.tiff -segcreate __ICON __header Foo.header The header file simply specifies that the app is called "Foo," and its icon is the first icon in the tiff file in the tiff section of the __ICON segment. (This implies you can have multiple icons in the tiff file; you can: for instance, a document icon... More later.) Once you've create your executable, place it in your ~/Apps directory, and use the "Find Tools" menu command from the Workspace. This will case WS to rescan its path for the icon info and your icon should show up. Ali Ozer, NeXT Developer Support aozer@NeXT.com >From: jec@iuvax.cs.indiana.edu (James E. Conley)
Date: Sun 25-Jan-1989 15:12:27 From: Unknown Subject: Re: assigning icon to program In article <6077@polya.Stanford.EDU> I wrote: >In article <392@garcon.cso.uiuc.edu> Steve Dorner writes: >> ... how do I give my very own program my very own icon? > >To create an icon: >1. Run /MyDisk/Programming/Demos/Icon >2. Through "prefs" change icon size to 48x48 (default is 64x64) >3. Be artistic; create your icon, and save with alpha channel as a TIFF file > >Then create a header file, call it "Foo.header". The file should look like >this, assuming your app is call Foo: > >F<tab>Foo<tab>Foo<tab>1 > > ... Well, there was a mistake in the above line. Assuming you have just one TIFF picture, like in the above case, the number at the end should be a 0, not a 1. The number is the index of the TIFF picture in the TIFF segment; and indexes start from 0. If you had two TIFF pictures, you would append them together, and put the resulting file in the TIFF segment, and the indexes would be 0 and 1. Sorry for the confusion. Ali Ozer, NeXT Developer Support aozer@NeXT.com >From: c9c-aa@dorothy.Berkeley.EDU (Brad Post)

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