Change reserve battery power message (including Terminal if necessary)

Discussion in 'Mac OS X Lion (10.7)' started by Summersify, Apr 14, 2012.

  1. Summersify macrumors member

    Joined:
    Oct 29, 2011
    Location:
    UK
    #1
    Hi all,

    Essentially, what I'm trying to do is change the text in that popup that says something akin to 'Computer now on reserve battery power'. How is this possible? I don't mind if I have to use Terminal.

    Thanks for any help!
    Jack. :)
     
  2. GGJstudios macrumors Westmere

    GGJstudios

    Joined:
    May 16, 2008
    #2
    Why would you want to change the text of a warning message?
     
  3. Summersify thread starter macrumors member

    Joined:
    Oct 29, 2011
    Location:
    UK
    #3
    A friend of mine wants me to change it for them to something different for the fun of it. I don't really know why either, but if it floats their boat...

    Any ideas of how to?
     
  4. Intell macrumors P6

    Intell

    Joined:
    Jan 24, 2010
    Location:
    Inside
    #4
    The file you want to modify is /System/Library/CoreServices/Menu Extras/Battery.menu/Contents/Resources/English.lproj/Warning.nib, but it's a compiled nib on Snow Leopard and newer. So you'll have to devise a way to edit it. Just make sure you keep backups of the original.
     
  5. Summersify thread starter macrumors member

    Joined:
    Oct 29, 2011
    Location:
    UK
    #5
    What kind of application would be able to open and edit .nib files?
     
  6. Intell macrumors P6

    Intell

    Joined:
    Jan 24, 2010
    Location:
    Inside
    #6
    Xcode can, but that nib is a compiled one that cannot be edited. There is a way to edit it, even though it's compiled. However, I forget how at this time.
     
  7. Summersify thread starter macrumors member

    Joined:
    Oct 29, 2011
    Location:
    UK
    #8
    I see. Anyway, I've opened Warning.nib in Xcode but cannot find the location of the text which I have to change.
     
  8. Intell macrumors P6

    Intell

    Joined:
    Jan 24, 2010
    Location:
    Inside
    #9
    You can't change it with Xcode because it is a compiled nib.
     
  9. Summersify thread starter macrumors member

    Joined:
    Oct 29, 2011
    Location:
    UK
    #10
    I know, but it does appear that I can view it. Even if I had the ability to edit it I still wouldn't know what to edit.
     

Share This Page