NSMenuItem target binding

  • Hi,

    IB (both 2.5 and 3) allows to setup a target binding for NSMenuItem,
    complete with parameters.

    But NSMenuItem seems not to support this binding:

    - It is not specified in Cocoa Bindings Reference.
    - I found the following sentence in the archive of this list: "An
    NSMenuItem doesn't have target/argument bindings, so you're still
    going
    to have to give it a target and an action".
    - It simply does not work.

    Bug in IB? Or should it work despite the evidence to the contrary?

    Kai
  • on 11/15/07 4:28 AM, <kai...> purportedly said:

    > IB (both 2.5 and 3) allows to setup a target binding for NSMenuItem,
    > complete with parameters.
    >
    > But NSMenuItem seems not to support this binding:
    >
    > - It is not specified in Cocoa Bindings Reference.
    > - I found the following sentence in the archive of this list: "An
    > NSMenuItem doesn't have target/argument bindings, so you're still
    > going
    > to have to give it a target and an action".
    > - It simply does not work.
    >
    > Bug in IB? Or should it work despite the evidence to the contrary?

    Since when? My IB has never had these binding options for NSMenuItem, that I
    recall. Certainly not as of 2.5.4, at least.

    Best,

    Keary Suska
    Esoteritech, Inc.
    "Demystifying technology for your home or business"
  • On Nov 15, 2007, at 2:34 PM, <cocoa-dev-request...> wrote:

    > Date: Thu, 15 Nov 2007 14:33:49 -0700
    > From: Keary Suska <hierophant...>
    > Subject: Re: NSMenuItem target binding
    > To: "Cocoa-Dev (Apple)" <cocoa-dev...>
    > Message-ID: <C362094D.19728%<hierophant...>
    > Content-Type: text/plain;    charset="US-ASCII"
    >
    > on 11/15/07 4:28 AM, <kai...> purportedly said:
    >
    >> IB (both 2.5 and 3) allows to setup a target binding for NSMenuItem,
    >> complete with parameters.
    >>
    >> But NSMenuItem seems not to support this binding:
    >>
    >> - It is not specified in Cocoa Bindings Reference.
    >> - I found the following sentence in the archive of this list: "An
    >> NSMenuItem doesn't have target/argument bindings, so you're still
    >> going
    >> to have to give it a target and an action".
    >> - It simply does not work.
    >>
    >> Bug in IB? Or should it work despite the evidence to the contrary?
    >
    > Since when? My IB has never had these binding options for
    > NSMenuItem, that I
    > recall. Certainly not as of 2.5.4, at least.
    >
    > Best,
    >
    > Keary Suska
    > Esoteritech, Inc.
    > "Demystifying technology for your home or business"

    They're not binding options. The target and argument bindings work
    just like the ones for NSButton. They're new to NSMenuItem's in 10.5,
    so you wouldn't see them in IB on tiger.

    -----------------------------
    Ronzilla
    Core Bindings/Cocoa Builder/Interface Data
  • > On Nov 15, 2007, at 2:34 PM, <cocoa-dev-request...> wrote:
    >
    >> Date: Thu, 15 Nov 2007 14:33:49 -0700
    >> From: Keary Suska <hierophant...>
    >> Subject: Re: NSMenuItem target binding
    >> To: "Cocoa-Dev (Apple)" <cocoa-dev...>
    >> Message-ID: <C362094D.19728%<hierophant...>
    >> Content-Type: text/plain;    charset="US-ASCII"
    >>
    >> on 11/15/07 4:28 AM, <kai...> purportedly said:
    >>
    >>> IB (both 2.5 and 3) allows to setup a target binding for NSMenuItem,
    >>> complete with parameters.
    >>>
    >>> But NSMenuItem seems not to support this binding:
    >>>
    >>> - It is not specified in Cocoa Bindings Reference.
    >>> - I found the following sentence in the archive of this list: "An
    >>> NSMenuItem doesn't have target/argument bindings, so you're still
    >>> going
    >>> to have to give it a target and an action".
    >>> - It simply does not work.
    >>>
    >>> Bug in IB? Or should it work despite the evidence to the contrary?
    >>
    >> Since when? My IB has never had these binding options for NSMenuItem, that I
    >> recall. Certainly not as of 2.5.4, at least.
    >>
    >> Best,
    >>
    >> Keary Suska
    >> Esoteritech, Inc.
    >> "Demystifying technology for your home or business"
    >
    >
    > They're not binding options. The target and argument bindings work just like the ones for NSButton. They're new to NSMenuItem's in 10.5, so you wouldn't see them in IB on tiger.

    Yes, that's true: I checked in IB 3 and IB 2.5, but both running under Leopard.

    But I checked the release notes for Leopard, too, and found nothing about this new feature of menu items.

    Anyway, so it is as expected that I can setup such bindings in IB, but they won't work when the app is build against the Tiger SDK?

    Kai
  • On Nov 16, 2007, at 8:55 AM, Kai Brüning wrote:

    >> They're not binding options. The target and argument bindings work
    >> just like the ones for NSButton. They're new to NSMenuItem's in
    >> 10.5, so you wouldn't see them in IB on tiger.
    >
    > Yes, that's true: I checked in IB 3 and IB 2.5, but both running
    > under Leopard.
    >
    > But I checked the release notes for Leopard, too, and found nothing
    > about this new feature of menu items.
    >
    > Anyway, so it is as expected that I can setup such bindings in IB,
    > but they won't work when the app is build against the Tiger SDK?

    Correct, the target/argument bindings for NSMenuItem won't work when
    run on Tiger.
previous month november 2007 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    
Go to today