🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.next.programmer
4 messages
4 total messages Started by Michael J. Hopkins Sat, 23 Jan 1993 23:03
IB question
#2286
Author: Michael J. Hopkins
Date: Sat, 23 Jan 1993 23:03
25 lines
1466 bytes
I have a question about loading images into a project.
Suppose I am creating an icon for use in a project.
First I draw the icon, then I drag it into IB and the image
suitcase opens up, and I drop it in.  A panel comes up giving me
the choice of inserting it into the project or creating a local image.
I choose to insert it into the project, thus creating a .tiff file in
my project folder.  Now suppose I decide to make some changes to the image.
How can I make them take effect in IB?  Simply changing the .tiff file
doesn't seem to do anything.  In fact the file can be deleted.  IB has
put its own private copy in the .nib file.  If I try to add the updated
icon to the .nib file again (by dragging it into IB) I get an alert panel
telling me that the image already exists.  IB then refuses to write over it.
I guess my question is:  How can I delete an image from a .nib file?







-- 
-----------------------------------
Mike Hopkins
mjh@math.mit.edu
-----------------------------------
Re: IB question
#2304
Author: kevins
Date: Sun, 24 Jan 1993 22:51
41 lines
2109 bytes
Michael J. Hopkins writes
-> I have a question about loading images into a project.
-> Suppose I am creating an icon for use in a project.
-> First I draw the icon, then I drag it into IB and the image
-> suitcase opens up, and I drop it in.  A panel comes up giving me
-> the choice of inserting it into the project or creating a local image.
-> I choose to insert it into the project, thus creating a .tiff file in
-> my project folder.  Now suppose I decide to make some changes to the image.
-> How can I make them take effect in IB?  Simply changing the .tiff file
-> doesn't seem to do anything.  In fact the file can be deleted.  IB has
-> put its own private copy in the .nib file.  If I try to add the updated
-> icon to the .nib file again (by dragging it into IB) I get an alert panel
-> telling me that the image already exists.  IB then refuses to write over it.
-> I guess my question is:  How can I delete an image from a .nib file?
-> 
-> 
-> 
-> 
-> 
-> 
-> 
-> -- 
-> -----------------------------------
-> Mike Hopkins
-> mjh@math.mit.edu
-> -----------------------------------

Yes, this appears to be a big pain in the ass. The only thing I've found  to do  
is remove the image from ProjectBuilder and it should be removed from IB. Then  
simply add it again. This seems to suck.

Anyone else have any ideas?

 
--
_______________________________________________________________________________
                        I'll cross my heart and hope to die
                        but the needle's already in my eye.
_______________________________________________________________________________
	
	Kevin Solie
Re: IB question
#2350
Author: Michael J. Hopkins
Date: Tue, 26 Jan 1993 15:27
48 lines
2305 bytes
In article <C1DrH3.FC6@ms.uky.edu> kevins@slow.inslab.uky.edu  writes:
>Michael J. Hopkins writes

< stuff deleted about the problem:
	Place an image in an app.
	Remove the image, and replace it with a new one with the same name
		(say you wanted to make some modifications)
	IB still shows the old image, and will not let you
		replace it with the new one.
>

>-> I guess my question is:  How can I delete an image from a .nib file?
>-> -----------------------------------


>
>Yes, this appears to be a big pain in the ass. The only thing I've found  to do  
>is remove the image from ProjectBuilder and it should be removed from IB. Then  
>simply add it again. This seems to suck.
>
>Anyone else have any ideas?
>
> 
>--
>_______________________________________________________________________________
>                        I'll cross my heart and hope to die
>                        but the needle's already in my eye.
>_______________________________________________________________________________
>	
>	Kevin Solie

This doesn't seem to work.  Even if you remove the image with PB,
Interface Builder will not let you add another image with the same name.
Adding the image in Project Builder only places the .tiff file in the
project directory.  The copy in the .nib file remains unchanged.

I suppose one could edit the .nib file by hand...

One last thing.  Ed (support@gateway.vvi.com) (sorry Ed, you didn't
send me your last name, and I can't seem to 'finger' you right now)
pointed out that if you replace the file, and go ahead and build the app
then the correct image will be placed in the application.  Only IB will
display the old one.
-- 
-----------------------------------
Mike Hopkins
mjh@math.mit.edu
-----------------------------------
Re: IB question (solution)
#2351
Author: Michael J. Hopkins
Date: Tue, 26 Jan 1993 16:08
32 lines
1275 bytes
This is clearly what the internet was intended for.
Me submitting problems, following up my own post
with more questions, and then presenting solutions.
Oh well..

I figured out how to get IB to display a modified image.

(1) replace the image in PB by, for example double clicking on the
	suitcase icon, and adding the modified image (which presumably
	has the same name as the old image).

(2) save the project

(3) QUIT IB!

(4) Now when you open the .nib file IB will display the correct
	image.

-----
Part 2:

Ed (who sent me help before)  's name is 

Ed Vanvliet

thanks again Ed!

-- 
-----------------------------------
Mike Hopkins
mjh@math.mit.edu
-----------------------------------
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads