Changing Bundle Name

  • Hello!

    Maybe this is more an Xcode-question than a general Cocoa one, but I am
    not sure.
    When I started my project, I named it in a kind of sloppy way and now
    whenever I run the application, the dock icon displays this old name.
    How can I change this? Of course, renaming the application itself
    didn't do anything. Is there any place where I can tell Xcode how to
    name the binary executable so that the dock icon displays what I want
    it to?

    Regards,
    Michael
  • On Jan 16, 2005, at 14:45, Michael Becker wrote:
    > Maybe this is more an Xcode-question than a general Cocoa one, but I
    > am not sure.
    > When I started my project, I named it in a kind of sloppy way and now
    > whenever I run the application, the dock icon displays this old name.
    > How can I change this? Of course, renaming the application itself
    > didn't do anything. Is there any place where I can tell Xcode how to
    > name the binary executable so that the dock icon displays what I want
    > it to?

    Open Target Info window and look at  "Properties" tab.

    Jirka
  • On or about 1/16/05 5:46 AM, thus spake "<cocoa-dev-request...>"
    <cocoa-dev-request...>:

    > Maybe this is more an Xcode-question than a general Cocoa one, but I am
    > not sure.

    It is, actually.

    > When I started my project, I named it in a kind of sloppy way and now
    > whenever I run the application, the dock icon displays this old name.
    > How can I change this? Of course, renaming the application itself
    > didn't do anything. Is there any place where I can tell Xcode how to
    > name the binary executable so that the dock icon displays what I want
    > it to?

    Giving your app a name is astoundingly tricky. If I remember correctly:

    (1) the localized CFBundleName is what shows up in the menu bar

    (2) changing (presumably localizing) the About, Hide, Quit, and Help menu
    items is up to you :(

    (3) the dock name is the name of the app wrapper; you can change this by
    changing PRODUCT_NAME in your target (not project) settings

    (3a) when you do that, you also need to change the CFBundleExecutable to
    match (in your info.plist), or the app won't launch; I believe you can now
    (Xcode 1.5) set it to $(PRODUCT_NAME) to make this happen all by itself, and
    in fact that seems to be the best approach.

    m.

    --
    matt neuburg, phd = <matt...>, http://www.tidbits.com/matt/
    pantes anthropoi tou eidenai oregontai phusei
    AppleScript: the Definitive Guide! NOW SHIPPING...! (Finally.)
    http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt
    Subscribe to TidBITS! It's free and smart. http://www.tidbits.com/
  • Except sometimes XCode gets confused and your target wont build
    anymore. I had a fight with this this weekend. It was easier to create
    a new project in the end.
    Maybe you could get away with creating a new target and deleting the
    old?

    On 17/01/2005, at 6:57 AM, Matt Neuburg wrote:

    > On or about 1/16/05 5:46 AM, thus spake
    > "<cocoa-dev-request...>"
    > <cocoa-dev-request...>:
    >
    >> Maybe this is more an Xcode-question than a general Cocoa one, but I
    >> am
    >> not sure.
    >
    > It is, actually.
    >
    >> When I started my project, I named it in a kind of sloppy way and now
    >> whenever I run the application, the dock icon displays this old name.
    >> How can I change this? Of course, renaming the application itself
    >> didn't do anything. Is there any place where I can tell Xcode how to
    >> name the binary executable so that the dock icon displays what I want
    >> it to?
    >
    > Giving your app a name is astoundingly tricky. If I remember correctly:
    >
    > (1) the localized CFBundleName is what shows up in the menu bar
    >
    > (2) changing (presumably localizing) the About, Hide, Quit, and Help
    > menu
    > items is up to you :(
    >
    > (3) the dock name is the name of the app wrapper; you can change this
    > by
    > changing PRODUCT_NAME in your target (not project) settings
    >
    > (3a) when you do that, you also need to change the CFBundleExecutable
    > to
    > match (in your info.plist), or the app won't launch; I believe you can
    > now
    > (Xcode 1.5) set it to $(PRODUCT_NAME) to make this happen all by
    > itself, and
    > in fact that seems to be the best approach.
    >
    > m.
    >
    > -- matt neuburg, phd = <matt...>, http://www.tidbits.com/matt/
    > pantes anthropoi tou eidenai oregontai phusei
    > AppleScript: the Definitive Guide! NOW SHIPPING...! (Finally.)
    > http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt
    > Subscribe to TidBITS! It's free and smart. http://www.tidbits.com/
    >
    >
    >
    > _______________________________________________
    > Do not post admin requests to the list. They will be ignored.
    > Cocoa-dev mailing list      (<Cocoa-dev...>)
    > Help/Unsubscribe/Update your Subscription:
    > http://lists.apple.com/mailman/options/cocoa-dev/
    > <henryj...>
    >
    > This email sent to <henryj...>
    >
previous month january 2005 next month
MTWTFSS
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            
Go to today
MindNode
MindNode offered a free license !