ftp.nice.ch/peanuts/GeneralData/Usenet/news/1989/CSN-89.tar.gz#/comp-sys-next/1989/Nov/Getting-at-the-applications-icon

This is Getting-at-the-applications-icon in view mode; [Up]


Date: Sun 22-Nov-1989 22:37:02 From: Unknown Subject: Getting at the application's icon I have a separate .nib module that contains a panel. I want to make that panel's miniwindow icon the same as the icon of the application into which it is linked. What's the recommended way of doing it? So far, I have considered: 1. Parsing the __header section of the __ICON segment to find the name of the icon associated with "app", and using that as the parameter to -setMiniwindowIcon:. 2. In the part of the application where the icon name is "known", store it for the benifit of other modules. For example: in NXApp's delegate's -appDidInit: method: [[NXApp appIcon] setMiniwindowIcon:"TheIconName"] and in the panel's +new: method: [self setMiniwindowIcon:[[NXApp appIcon] miniwindowIcon]] 3. Composite the rectangle {9.0, 9.0, 48.0, 48.0} from [NXApp appIcon] onto a bitmap and give that bitmap's name to -setMiniwindowIcon:. Any suggestions? Jacob
Date: Sun 23-Nov-1989 01:52:01 From: Unknown Subject: Re: Getting at the application's icon In article <130037@gore.com> jacob@gore.com (Jacob Gore) writes: >I have a separate .nib module that contains a panel. I want to make that >panel's miniwindow icon the same as the icon of the application into which >it is linked. What's the recommended way of doing it? The Application object will create a bitmap named "app" that contains the application's icon. Thus you can always get to the icon image with [Bitmap findBitmapFor:"app"]; Ali >From: blenko-tom@CS.YALE.EDU (Tom Blenko)
Date: Sun 23-Nov-1989 05:16:38 From: Unknown Subject: Re: Getting at the application's icon / comp.sys.next / ali@polya.Stanford.EDU (Ali T. Ozer) / Nov 22, 1989 / [Bitmap findBitmapFor:"app"]; ---------- Too obvious :-) Thanks, Ali! Jacob >From: evan@wheaties.ai.mit.edu (Evan Grossman)

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