Need to remove default dock menu item and add new.

Hi ,
I am working on Carbon application on Xcode . I need to remove default menu item attached to my application dock menu like ( Remove from Dock , Open at Login , Show in Finder ).
I also need to attach new items to my application dock menu and want to handle its event.
Thanks in advance,
Sunil Adhyaru.

Well, this is a programming question more than a question on how to use the Leopard environment (you might want to post to one to the programming forums).
However, basically, you can't remove the Dock menu items that the Dock itself adds (add/remove from dock, etc.). You can add your own menu items, however. Use the interface builder to create a nib that has a menu in it -- call it something catchy like MyMenu.nib.
Then in the application property list file (Info.plist) add property called "AppleDockMenu" and set the value to a string that's the name of your nib file (without the .nib extension).
Subsequently, you treat that menu just as you would the menus in your menu bar. That's all there is to it.

Similar Messages

  • Remove the primary key constraint and add new primar key to the table.

    Hi all,
    We had a design plan to remove a primary from the table on column X(VARCHAR) and add a new primary key on column Y(sequence)(dimensional table). Instead, I am planning to create a unique index on the column Y (I am referring column Y in my Fact table).
    I am using the column Y while joining the dimensional and fact table. Now, my question is.
    Is the retrieval will be faster if I make column Y as primary key or Is it the performance same if I create a unique index on it ?
    Note: Both column X and Y in dimension table are unique and not null. Don't want to alter the existing system hence want to create unique index .
    Please suggest.
    Thanks and Regards
    Nagaraja Akkivalli

    When you define a column as Primary key column you give certain information to Oracle that i can use when accessing that table. And similarly when you say a column as Unique Key column you give certain details to oracle that i can use when accessing that table.
    So it is up to you to decide if the what that column is meant to do. And decide based on that.
    For example a Unique column can have NULL values. But a primary key cannot have NULL value. This piece of information can be critical to oracle to generate the best plan.

  • How to Remove a bad mailbox server and add new mailbox server to DAG and copy mailboxes over

    DAG
    2- cas - VM
    2- mbx- physical blade  (mbx1, mbx2)
    5- mailbox databases
    OS: Win 2008 SP2
    Exchange 2010SP3
    Storage: Tegile Disk jbod  Luns
    We have bad disks on mbx1.  our plan is to get a new blade to replace the bad one named mbx3. we need to do this asap since we are running on 1 server without failover capability
    How can I safely:
    1. Add a new mailbox server to the DAG
    2. Copy\Move the databases from the old (passive) server to the new server
    3. Remove the bad mailbox server from DAG

    You'll want to make sure that the new server is on all the same networks that the server you are removing is on, specifically networks that are DAG networks. Also, you'll want to avoid using Windows Network Load Balancing on the new mailbox server
    since it will be part of the DAG. Also, just as you did with the current DAG members, ensure that the disk drive letters match the existing disks that hold databases & logs. Other than that, it's as simple as you have stated.
    1.) Once you have the new mbx server built & configured with the mailbox role, you can use:
    Get-DatabaseAvailabilityGroup "Name of DAG" | Add-DatabaseAvailabilityGroupServer "Name of New MBX Server"
    2.) Add the databases to the new DAG member:
    Add-MailboxDatabaseCopy "name of database" -MailboxServer "name of new DAG member" -ActivationPreference "[you decide based on the server replacing mbx1]"
    3.) Once your databases are Mounted and/or Healthy on the new DAG member, you'll want to remove the databases from the "bad" server (make sure they are all passive on the server first):
    Get-MailboxDatabaseCopy "SERVER\Database" | Remove-MailboxDatabaseCopy
    4.) Once all of the databases are removed from the "bad" DAG member, remove him from the DAG:
    Get-DatabaseAvailabilityGroup "Name of DAG" | Remove-DatabaseAvailabilityGroupServer "Name of old MBX Server"
    Before you pull the blade, uninstall Exchange Server gracefully, as this will save you AD & Exchange headaches later on.
    Petri has a pretty good GUI walk-through for some of the above steps here:
    How to Configure Database Availability Group for Exchange Server 2010
    Woody Colling, MCITP Exchange 2010
    --The incentive for the experts to answer posts is to get their replies marked as helpful, or as the answer to our questions, help them help us, mark posts accordingly--

  • Removing right-click menu items

    When I highlight a group of text in a web page and right click the text, There are 4 options in the menu for converting the text to PDF.
    How do I remove these options from the menu?

    Why doesn't adobe have an option within settings to remove shell/context/menu items?
    For those who don't want the extra crap cluttering up their menus...
    In winXP
    -(with IE closed), click 'start', 'control panel', 'internet options'.
    -Click on the 'programs' tab.
    -click 'manage ad-ons'
    -Find the Browser Helper Object called 'AcroIEToolbarHelper Class',
    --highlight it and click 'disable'.
    -Click 'ok' to close the manage ad-ons window, click 'ok' to close the internet options window.
    You still need to remove the items from the right-click menu.
    (*everyone puts a disclaimer so here goes. If you are scared to edit the registry...don't. Create a restore point, don't touch any other entries except the ones listed.)
    -click 'start', 'run', type 'regedit', click 'ok'
    -go to this entry "[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt]"
    -delete the 8 Adobe 'convert....' entries. (or just the ones you want gone).
    (You can export them if you want, just highlight, right-click, export, and save them somewhere, but it's not necessary. If you want them back just go to 'internet options' in 'control panel' and 'enable' the Browser Helper Object again. If you re-enable it, the next time you start IE the registry entries and right-click items are replaced.)

  • Equal Space between Menu Items and Drop Down Menü left aligned not possible?

    It seems like I can either have equal spacing between the horizontal menu items and the drop down menu will show up centered , or I say the menu items should be of equal size, and then drop down will be left aligned. Is there any way of having equal space AND left aligned drop down???? Thanks in advance!

    Hello Anjum,
    Thank you for reporting the issue. It seems to be a Bug and we have logged the same. Hopefully it will get fixed in coming releases.
    As of now we do not have any workaround for same. However once we have some workaround, we will definitely share it with you.
    Regards,
    Sachin

  • Where is the "apps" menu item in the new iTunes interface?

    Where is the “apps” menu item in the new iTunes interface?  I can no longer transfer files from my PC to my iPhone.
    I just downloaded and installed the updated iTunes for my iPhone.  I cannot find the “apps” menu item anywhere.  How can I continue to download various types of files FROM my PC (Windows 7) TO my iPhone?  I previously did this by clicking on the “apps” menu item and going from there.  I cannot find the “apps” anywhere on the new iTunes.  Thanks.   

    Tonefox, no it's not under "Music" but I did some more digging and found where Apple has "hidden" Apps on their latest iTunes for PC.    You need to click on "iPhone" (upper right menu item) to display more menue items, of which Apps is one of them.  When I had clicked on "iPhone" before, I mistakenly closed the the iPhone option from view because I clicked on the up arrow next to iPhone, instead of just iPhone.  Once you click on iPhone, the options look similar to what they did in the earlier version of iTunes and you can easily find Apps.

  • Want to copy an entire sales order item and add it as a new item to same SO

    Hi,
      I want to copy an entire sales order item and add it to the same sales order with a different quantity. When I use the regular BDC and add it gets me only the default values for fields like Forwarding Agent etc. But doesnt actually copy any changes. Is there some standard SAP function module or some other mechanism I can use to exactly copy the original item along with all the changes values e.g pricing conditions, forwarding agent etc.
    Thank you for reading.

    How will this help me for copying an item? This function module is only useful for the following
    1. Delete the whole order
    2. Delete order items
    3. Change the order
    4. Change the configuration
    In order to change the order items I first need to know the items.
    Is there any function module which can read all the values in a sales order item, then I can pass them to BAPI_SALESORDER_CHANGE probably

  • Why "New Item" in ribbon and "Add new item" in xsllistview link to different form

    Hi all,
    I have a question. I have a list with two new forms, one is created in SPD the other one is created in InfoPath (both forms are created by developer).
    I don't know why the new form link to different page when I click "New Item" in ribbon and "Add new item" in list view.
    1. Will open new form that created in InfoPath when click on "New Item" in ribbon.
    2. Will open new form that created in SPD when click on "Add new item" in list view.

    One way to do this would be to hold the urls for the pages you need to display in a table. You could then build the links as one of the columns of a report using some fancy SQL.<br>
    <br>
    Or you could make a simple function to return the correct link based on the relevant parameters:<br>
    <br>
    create or replace function get_url (p_criteria in varchar2) return varchar2<br>
    is<br>
    lv_url varchar2(500);<br>
    begin<br>
    if p_criteria = 'Personal' then<br>
    lv_url := 'http://host:port/pls/portal/etc...';<br>
    end if;<br>
    etc...<br>
    return '&LT;a href="' || lv_url || '"&GT;' || p_criteria || '&LT;/a&GT;';<br>
    end;<br>
    <br>
    Your report could then include the function as one of the columns in your report.<br>
    Not very elegant but it should do the job.
    Patrick.

  • My apple id email address is no longer valid. my current email address is recognised as my rescue email...i need to cancel old, change my current and add a new recue email...cant seem to be able too

    my apple id email address is no longer valid. my current email address is recognised as my rescue email...i need to cancel old, change my current and add a new recue email...cant seem to be able too

    How are you trying to do it ? You can change the rescue email address on your account by, from http://support.apple.com/kb/HT5312 :
    Navigate to appleid.apple.com using your web browser.
    Click "Manage your account"
    When prompted, sign in using your Apple ID and password.
    Click Password & Security
    You'll be asked to answer 2 of your 3 security questions before you can make any modifications. If you are unable to remember your answers, you can choose to send an email to your rescue email to reset your security questions.
    After you've validated your identity by correctly answering your security questions, click Edit to the right of your rescue email address.
    Once you've finished editing your rescue email address, click the Save button directly below the email field.
    You can then try using your current rescue email address as your primary email address - you may need to log out of that page and back in. Or you can then try changing the primary email address via the Store > View Account menu option on your computer's iTunes
    If you have an iPhone, iPad and/or iPod Touch you may then need to log out of your account on them by tapping on it in Settings > iTunes & App Store and log back in for the account to be 'refreshed' on it.

  • I want to remove some of the games and add my own; How?

    I want to remove some of the games and add my own;
    How?
    == This happened ==
    Every time Firefox opened
    == from the start

    How is that related to Firefox support?

  • If I requested to erase a stolen device on find my iphone but did not receive a confirmation, do I need to remove the device before restoring the replacement (new) iphone? Can my stolen iphone still be erased if I restore my new iphone?

    if I requested to erase a stolen device on find my iphone but did not  receive a confirmation, do I need to remove the device before restoring  the replacement (new) iphone? Can my stolen iphone still be erased if I  restore my new iphone? I am just concerned with someone accessing all my  content.

    1. No.
    2. Yes if it's still on online

  • Remove PR Mandatory for PO and Assign new PO Layout to one User

    Hi Experts,
    I want to remove PR mandatory for PO and assign new PO Layout for one User. I am facing following problem.
    1. I have already created a function authorisation Z1 with reference to PR and assign the same in SU01, Paramenter EFB - Z1.
    Now I have removed ref to purchase requisition tick and assign new PO layout in Z1.
    But ref to PR not removed, and new po layout is not coming.
    What should I do.
    Thanks in advance.
    GR

    why dont u assign the new PO screen layout to the PO document type thru spro-mmpurchasingpo-define document type---here assign ur new field selection with the PO document type coz whatever the screen layout of PO comes while processing me21n,it comes due to the field selection present here as per my knowledge.
    regards,
    indranil

  • EM  - Delete Existing Tracking ID and add New Tracking ID

    Hello Everyone
    I am working on u201CDual Tracking IDu201D issue for EM Project.
    Issue: Current design, when Users change Tracking ID (Inbound Delivery Bill of Lading #), In Event Management, we have both Old and New Tracking ID (YTRACK_NO).
    Solution: Users / Business Requested to Update Existing Tracking ID (YTRACK_NO) in EM. Anytime in EM, we will have only NEW value of YTRACK_NO.
    For the same, I modified FM in ECC and Config (Rules) in EM.
    Added  Tracking References in Event Message FM whenever there is change in Tracking No.
    Replace Existing Tracking ID YTRACK_NO with new Value
          ls_trackreferences-evtcnt   = lv_evtcnt.
          ls_trackreferences-refcod   = 'YTRACK_NO'.
          ls_trackreferences-refid    = <ls_xlikp>-bolnr.
          ls_trackreferences-refusage = 'T'.
          ls_trackreferences-action   = 'A'.
          APPEND ls_trackreferences TO lt_trackreferences.
    Configuration / Rules in EM:
    For YIDN_CHANGED_TRAC Activity:
    Iu2019ve added Task12 u2013 Delete Tracking u2013 Activity TRACKING_ID_REMOVE
    TASK 15 u2013 Added Tracking ID u2013 Activity TRACKING_ID_SET
    Once the FM and Config is completed,
    When I change Existing Inbound Delivery BOL #, I see TRACKING ID (YTRACK_NO) is deleted from Tracking ID Tab for Inbound Delivery EH but new Tracking ID (YTRACK_NO) is not added either.
    I checked SLG1 ( logs) and I see Activity is Triggered and RC = 0. Donu2019t see any errors either.
    I see entry in /saptrx/evm_ref ( New Tracking ID) table.
    Any thoughts?
    Any help is appreciated.
    PS:
    u2022     Once the Event Messages is posted, If I do Reprocess Event Messages (Manually), interestingly New Tracking ID is getting added to EH.
    u2022     Also if post Event Messages through BADI (/SAPTRX/BAPI_EH_ADDEVENTMSG_02) in EM (manually) , it works Perfectly (Deletes and Adds new Tracking ID)

    you sign in on apple website and then you can add or remove any account..

  • TS2446 i can sign in apple ID but can not update app store and add new app

    i can not update my app store and add new app

    That didn't answer either of my questions.
    What are you trying to sign into using Safari?
    Did you change the email on your existing Apple ID or create a new Apple ID?
    What "app button" are you talking about?

  • Touch ID on my ip5s had broken. I added my fingerprints before then I deleted them and add new one. How I can fix that problem? P/s : Fail immediately when I click on Add fingerprints

    Touch ID on my ip5s had broken. I added my fingerprints before then I deleted them and add new one. How I can fix that problem? P/s : Fail immediately when I click on Add fingerprints.

    problem is "Failed. Sorry, the operation was not succesfull. ... " and now i can't use touch ID in my phone

Maybe you are looking for

  • Server Logon History table in master database has grown to 30GB. Is it a best practice to truncate this table?

    I have noticed that the master database in our staging env has grown to 30Gb with 299803769 records. I am not sure why but this has happened in the last one year. Just from yesterday to today (1/1/2014 to 1/2/2014) it has 629921 records. Is it a good

  • My return key on Macbook pro doesn't work

    My return key on Macbook Pro stopped working, also the shift key

  • Several instances using same port question

    Good Morning, I am going to have to create several instances on one box using solaris 10 zone technology. Each zone haveing it's own instance. I need to confirm whether or not that all those instances can use one listerner or does each instance need

  • Unable to update Java

    Okay, the answer to this is pretty obvious. I still have Snow Leopard and have discovered that I cannot update Java because I don't have Lion.  I know I'm going to end up being forced to upgrade because keeping stuff updated is a really good idea. Do

  • Windows 8 Last Access Time Stamps not working

     Hi I have been trying to fix a issue with last access time stamps not working when I open a file so will have time on created modified and accessed from when created but some are wrong like one file saying created ‎Sunday, ‎September ‎14, ‎2014, ‏‎5