how to detach menu from Cocoa Application?

Discussion in 'Mac Programming' started by mkristain, Aug 28, 2011.

  1. mkristain macrumors regular

    Joined:
    Aug 18, 2011
    #1
    HI

    when i run my application its default menu show in menu bar of PC,

    i just dont want to use this please tell me how can i detach this from application.
     
  2. larkost macrumors 6502a

    Joined:
    Oct 13, 2007
    #2
  3. mkristain thread starter macrumors regular

    Joined:
    Aug 18, 2011
  4. jiminaus macrumors 65816

    jiminaus

    Joined:
    Dec 16, 2010
    Location:
    Sydney
    #4
    You have to have a menu bar. If you don't want the default menu items, deleted them from the xib.
     
  5. mkristain thread starter macrumors regular

    Joined:
    Aug 18, 2011
    #5
    yes i deleted from my .nib file but still menu with my application name is displayed when i run my application.
     
  6. Catfish_Man macrumors 68030

    Catfish_Man

    Joined:
    Sep 13, 2001
    Location:
    Portland, OR
    #6
    Incorrect. LSUIElement apps don't have a menubar.
     
  7. mkristain thread starter macrumors regular

    Joined:
    Aug 18, 2011
  8. mkristain thread starter macrumors regular

    Joined:
    Aug 18, 2011
    #8
    no i just want no menu of my application is display in system menu bar when i run my app.
     
  9. Catfish_Man macrumors 68030

    Catfish_Man

    Joined:
    Sep 13, 2001
    Location:
    Portland, OR
    #9
    A suggestion has been given twice. You should google that suggestion to see how it works.
     
  10. mkristain, Aug 30, 2011
    Last edited: Aug 31, 2011

    mkristain thread starter macrumors regular

    Joined:
    Aug 18, 2011
    #10
    Thanks its done now.

    but application not view in dock pane while app is running.
     
  11. larkost macrumors 6502a

    Joined:
    Oct 13, 2007
    #11
    Yes, that is how it works. If you have a menu, then you have a dock representation. If you don't, then you don't. I have already given you links to documentation, and you should go from there.
     
  12. mkristain thread starter macrumors regular

    Joined:
    Aug 18, 2011

Share This Page