bugGNUstep - Bugs: bug #19588, Application crash when NSIcon is...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #19588: Application crash when NSIcon is empty in property list

Submitted by:  -Deleted Account- <yjchen>
Submitted on:  Sat 14 Apr 2007 04:50:44 AM UTC  
 
Category: Gui/AppKitSeverity: 3 - Normal
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Sun 15 Apr 2007 09:23:58 AM UTC, comment #1:

Fixed in svn ... I modified NSBundle to accept a nil/empty resource name (which is what MacOS-X does).

Richard Frith-Macdonald <CaS>
Project Member
Sat 14 Apr 2007 04:50:44 AM UTC, original submission:

There are NSIcon and ApplicationIcon in application's property list : [Application name]Info.plist.
I notice that if the value is empty for application A, ex. NSIcon="";, application B will crash when they use [NSWorkspace iconForFile] for application A.
More specifically, [NSWorkspace iconForFile: path_to_application] will fail if the specified application has a property list in which NSIcon = ""; and ApplicaitonIcon = "";.
If the value is any random string, it will be fine.
I attach a test application. You can play with testInfo.plist and see .

-Deleted Account- <yjchen>

 

Attached Files
file #12478:  junk.tar.gz added by yjchen (700B - application/x-gzip)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by CaS (Posted a comment)
  • -unavailable- added by yjchen (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 15 Apr 2007 09:23:58 AM UTCCaSStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Sat 14 Apr 2007 04:50:44 AM UTCyjchenAttached File-=>Added junk.tar.gz, #12478

    Back to the top


    Powered by Savane 3.1-cleanup1