Professional Web Applications Themes

classic doentation removed from apple website ? - Mac Programming

Hi, has it been removed ??? Can't find it there any more... i'm looking for a classic alternative for changeMenuItemAttributes to clear separator and set ignoremeta... BR, Jey...

  1. #1

    Default classic doentation removed from apple website ?

    Hi,

    has it been removed ???
    Can't find it there any more...

    i'm looking for a classic alternative for
    changeMenuItemAttributes to clear separator and set ignoremeta...

    BR,
    Jey
    mmm@mmm.mm Guest

  2. #2

    Default Re: classic doentation removed from apple website ?

    <mm> wrote:
     

    No.

    http://developer.apple.com/doentation/macos8/mac8.html

    m.


    --
    matt neuburg, phd = com, http://www.tidbits.com/matt/
    AppleScript: The Definitive Guide
    http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt
    Read TidBITS! It's free and smart. http://www.tidbits.com
    matt Guest

  3. #3

    Default Re: classic doentation removed from apple website ?

    matt neuburg <com> wrote:
     
    >
    > No.
    >
    > http://developer.apple.com/doentation/macos8/mac8.html[/ref]

    Look like it is carbon doc. anyway...Still trying
    to find a way to have "-" as menu text under classic (possible in carbon
    with ChangeMenuItemAttributes,which does not exists under classic).

    BR
    J
    mmm@mmm.mm Guest

  4. #4

    Default Re: classic doentation removed from apple website ?

    In article <1gdvxk4.1b5x7jijxp87sN%mm>, mm wrote:
     

    I heard there's something called "glasses" that allow something called
    "looking closely" that may have helped in that case.
     

    There is none. If a menu item name starts with a dash, it becomes a
    separator. However, you can put another character before it. A space
    sounds like a good candidate.

    Sometimes, it just helps to ask the right question,
    -- Uli
    http://www.zathras.de
    Uli Guest

  5. #5

    Default Re: classic doentation removed from apple website ?

    In article <t-online.com>,
    Uli Kusterer <de> wrote:
     

    I don't think that's true; if you call InsertItem("\p-") then you get a
    separator, but if you call InsertItem("\pfoo") and then SetItemText("\p-") you
    should get an item with - in the name.

    Or perhaps this only applies to all the other magic characters in menu items?

    meeroh

    --
    If this message helped you, consider buying an item
    from my wish list: <http://web.meeroh.org/wishlist>

    Miro Guest

  6. #6

    Default Re: classic doentation removed from apple website ?

    In article <mit.edu>,
    Miro Jurisic <org> wrote:
     
    >
    > I don't think that's true; if you call InsertItem("\p-") then you get
    > a separator, but if you call InsertItem("\pfoo") and then
    > SetItemText("\p-") you should get an item with - in the name.
    >
    > Or perhaps this only applies to all the other magic characters in menu items?[/ref]

    I think that worked for all meta characters. It's been a while and I
    don't have any way to test this, but I'm pretty sure it's right. :)

    -Eric

    --
    Eric Albert stanford.edu
    http://rescomp.stanford.edu/~ejalbert/
    Eric Guest

  7. #7

    Default Re: classic doentation removed from apple website ?

    In article <mit.edu>,
    Miro Jurisic <org> wrote:
     
    >
    > I don't think that's true; if you call InsertItem("\p-") then you get a
    > separator, but if you call InsertItem("\pfoo") and then SetItemText("\p-")
    > you
    > should get an item with - in the name.
    >
    > Or perhaps this only applies to all the other magic characters in menu items?[/ref]

    Only the others, not the dash.
    Uli Guest

  8. #8

    Default Re: classic doentation removed from apple website ?

    > > to find a way to have "-" as menu text under classic (possible in carbon 
    >
    > There is none. If a menu item name starts with a dash, it becomes a
    > separator. However, you can put another character before it. A space
    > sounds like a good candidate.[/ref]

    Or, even better, since classic menu-related routines are expecting
    pascal strings, you can insert a *nul* character before the item name
    starting with a "-" (or even before any kind of item names). Something
    like :

    AppendMenu (menuHandle, "\p\0-foo");
    AppendMenu (menuHandle, "\p\0bar");

    The nul character won't be visible, but must be taken into account if
    you ever plan to sort out the existing item names...

    HTH,

    --Mikaeru
    No Guest

  9. #9

    Default Re: classic doentation removed from apple website ?

    Uli Kusterer <de> wrote:
     
    >
    > Only the others, not the dash.[/ref]


    I ran into this also, trying to make a menu to show recent files.
    Amazing the odd characters people (like me) put in file names.
    InsertItem would treat a lot of these as meta characters and cause all
    sorts of odd menu displays. My solution was to initially insert a dummy
    item and then use SetItemText to make it what I wanted. This worked
    fine EXCEPT when there was a leading dash - then I had to put in a space
    in front of the name.
    ward Guest

Similar Threads

  1. [pgsql-www] Website Doentation
    By Bruce in forum PostgreSQL / PGSQL
    Replies: 5
    Last Post: February 14th, 11:55 AM
  2. Website Doentation
    By Bruce in forum PostgreSQL / PGSQL
    Replies: 6
    Last Post: February 13th, 03:43 AM
  3. Classic NewsWatcher 2.2.2 doentation?
    By Jamie in forum Mac Networking
    Replies: 2
    Last Post: December 20th, 12:41 PM
  4. Replies: 4
    Last Post: September 13th, 02:03 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139