Welcome to MacForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Application icon disappearing mystery?

 
   Macintosh computer (Home) -> Programmer Code RSS
Next:  Python with Xcode  
Author Message
Mike

External


Since: Jul 06, 2007
Posts: 2



(Msg. 1) Posted: Fri Jul 06, 2007 3:05 pm
Post subject: Application icon disappearing mystery?
Archived from groups: comp>sys>mac>programmer>codewarrior, others (more info?)

I have a little mystery, maybe it will ring a bell for someone.

I'm using an admittedly old (v8.2) version of Codewarrior. I've created
an application, named, say, MyProgram. It's a carbonized application, a
plain application (not a bundle, etc.), though it does have a plist
resource. It has a separate resource fork, a type and a creator, etc.
Sometimes when I'm in Codewarrior and build the application, the
application it creates is created with a generic DOCUMENT icon...not
only does it NOT have the icon it's supposed to have, but it doesn't
even appear as an application, but rather as a document.

If I select the icon, and duplicate it (command-D) from the Finder, the
duplicated icon is correct...it's a properly double-clickable
application with the intended icon. Why is this?

(And, by the way, in a similar mystery, if I stuff (using StuffIt
DropStuff) this application with the proper icon, and then un-stuff it,
the un-stuffed file may yet again revert back to a generic document
icon...but it too, if duplicated, becomes correct again.)

Anyone have a clue what I've (apparently) forgotten to do? It's like
there's a flag that I should have set that says "this file is an
application" and I forgot to set it? When duplicated the file icon
corrects itself, but I'd still like to figure out this mystery.

THANKS!

 >> Stay informed about: Application icon disappearing mystery? 
Back to top
Login to vote
Sean McBride

External


Since: Jan 05, 2004
Posts: 311



(Msg. 2) Posted: Sat Jul 07, 2007 12:07 pm
Post subject: Re: Application icon disappearing mystery? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article ,
Mike wrote:

> I have a little mystery, maybe it will ring a bell for someone.
>
> I'm using an admittedly old (v8.2) version of Codewarrior. I've created
> an application, named, say, MyProgram. It's a carbonized application, a
> plain application (not a bundle, etc.), though it does have a plist
> resource. It has a separate resource fork, a type and a creator, etc.
> Sometimes when I'm in Codewarrior and build the application, the
> application it creates is created with a generic DOCUMENT icon...not
> only does it NOT have the icon it's supposed to have, but it doesn't
> even appear as an application, but rather as a document.

It's probably the Finder being stupid. Which OS version?

 >> Stay informed about: Application icon disappearing mystery? 
Back to top
Login to vote
Mike

External


Since: Jul 06, 2007
Posts: 2



(Msg. 3) Posted: Sat Jul 07, 2007 3:57 pm
Post subject: Re: Application icon disappearing mystery? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I'm up-to-date (on the OSX at least, if not Codewarrior!) running
10.4.10. I'm pretty sure the fault is mine (or maybe Codewarrior?) and
NOT Apple's Finder. I only real have this problem with apps that I
create not others' apps, so I'm pretty darn sure the oversight is on my
end, just haven't been able to figure out where! I'm thinking it might
be that I haven't properly told the Finder that my app is an
app...maybe something wrong with a Finder or Creator or plist resource,
or something like that??? ANyway, thanks for the thought...



In article , Sean McBride
wrote:

> In article ,
> Mike wrote:
>
> > I have a little mystery, maybe it will ring a bell for someone.
> >
> > I'm using an admittedly old (v8.2) version of Codewarrior. I've created
> > an application, named, say, MyProgram. It's a carbonized application, a
> > plain application (not a bundle, etc.), though it does have a plist
> > resource. It has a separate resource fork, a type and a creator, etc.
> > Sometimes when I'm in Codewarrior and build the application, the
> > application it creates is created with a generic DOCUMENT icon...not
> > only does it NOT have the icon it's supposed to have, but it doesn't
> > even appear as an application, but rather as a document.
>
> It's probably the Finder being stupid. Which OS version?
 >> Stay informed about: Application icon disappearing mystery? 
Back to top
Login to vote
purduejim

External


Since: Jul 08, 2007
Posts: 1



(Msg. 4) Posted: Sun Jul 08, 2007 4:58 pm
Post subject: Re: Application icon disappearing mystery? [Login to view extended thread Info.]
Archived from groups: comp>sys>mac>programmer>codewarrior (more info?)

Mike wrote:
...
It's a carbonized application, a
>plain application (not a bundle, etc.), though it does have a plist
>resource. It has a separate resource fork, a type and a creator, etc.
>Sometimes when I'm in Codewarrior and build the application, the
>application it creates is created with a generic DOCUMENT icon...not
>only does it NOT have the icon it's supposed to have, but it doesn't
>even appear as an application, but rather as a document.
What happens if you log out and back in? I have sometimes had to do this
several times and even had to delete all other copies of a newly build
application to get the icon to appear correctly. As one other poster alluded
to, the Finder's LaunchServices database does not seem to be as rigorous
about this as the old Creator code mechanism used in OS 9.
 >> Stay informed about: Application icon disappearing mystery? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
C++ Runtime Mystery - I frankly admit that I'm out of my depth on this one. I have a C++ (PP, Carbon, *not* Mach-O) app with some highly optimized matrix manipulations in it (because the runtime can be long). I noticed recently that the runtime had increased by nearly 1/3...

MoreFiles and FSpDTGetComment() - A mystery to me? - Hi... I'm using v1.5.4 of MoreFiles, and, in particular, trying to use a function called FSpDTGetComment. I pass in the address of a valid FSSpec and a Str255, but it continues to return an error (#: -5012 afpItemNotFound). This is a function in which....

icon for my target - I'm building a system extension as a faceless background application (Mac OS 9) and I want the target of the build to have the typical puzzle piece finder icon. I can do this manually (finder->get info, cut and paste), but I want to automate it..

files icon - How do I assign various icon images to various files that my application creates in OSX. I am using cw8.0? thanks henry

changing an icon ? - Hello I'm looking for a tool where i can easily change the icon of my app. it seems that i need something that changes the icns of my app. I'm looking for something that's drag n drop or copy paste. ( the truth is that I don't know how to change the..
   Macintosh computer (Home) -> Programmer Code All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]