NSTokenField in NSScrollView

  • I've been trying to get a NSTokenField to respond correctly in a
    NSScrollView but it just does not want to work. In IB, i put an
    NSTokenField on the window, then embed it in an NSScrollView. Is there
    anything else i need to do? I've tried messing around with some
    parameters but it's not working.

    Any help would be appreciated.

    thanks

    AC
  • It would be great if you can describe how it doesn't work.

    Thanks,

    Aki

    On 2007/10/26, at 9:58, Alexander Cohen wrote:

    > I've been trying to get a NSTokenField to respond correctly in a
    > NSScrollView but it just does not want to work. In IB, i put an
    > NSTokenField on the window, then embed it in an NSScrollView. Is
    > there anything else i need to do? I've tried messing around with
    > some parameters but it's not working.
    >
    > Any help would be appreciated.
    >
    > thanks
    >
    > AC
  • I think the main problem is that the NSTokenField does not resize
    depending on it's content. What im really looking for is a NSTokenView
    subclassed from NSTextView instead of a NSTokenField subclassed from a
    NSTextField.

    AC

    On 26-Oct-07, at 1:28 PM, Aki Inoue wrote:

    > It would be great if you can describe how it doesn't work.
    >
    > Thanks,
    >
    > Aki
    >
    > On 2007/10/26, at 9:58, Alexander Cohen wrote:
    >
    >> I've been trying to get a NSTokenField to respond correctly in a
    >> NSScrollView but it just does not want to work. In IB, i put an
    >> NSTokenField on the window, then embed it in an NSScrollView. Is
    >> there anything else i need to do? I've tried messing around with
    >> some parameters but it's not working.
    >>
    >> Any help would be appreciated.
    >>
    >> thanks
    >>
    >> AC
    >
  • In that case, you can manually resize the field by tracking user's
    editing actions via -controlTextDidChange:.
    You have to specify setWraps:YES in order to prevent the field's own
    scrolling behavior, of course.

    Aki

    On 2007/10/26, at 10:51, Alexander Cohen wrote:

    > I think the main problem is that the NSTokenField does not resize
    > depending on it's content. What im really looking for is a
    > NSTokenView subclassed from NSTextView instead of a NSTokenField
    > subclassed from a NSTextField.
    >
    > AC
    >
    > On 26-Oct-07, at 1:28 PM, Aki Inoue wrote:
    >
    >> It would be great if you can describe how it doesn't work.
    >>
    >> Thanks,
    >>
    >> Aki
    >>
    >> On 2007/10/26, at 9:58, Alexander Cohen wrote:
    >>
    >>> I've been trying to get a NSTokenField to respond correctly in a
    >>> NSScrollView but it just does not want to work. In IB, i put an
    >>> NSTokenField on the window, then embed it in an NSScrollView. Is
    >>> there anything else i need to do? I've tried messing around with
    >>> some parameters but it's not working.
    >>>
    >>> Any help would be appreciated.
    >>>
    >>> thanks
    >>>
    >>> AC
    >>
    >
  • Yes, thats what im doing now, and it still does not respond correctly.
    Maybe its just not made to work in a scrollView.

    AC

    On 26-Oct-07, at 2:19 PM, Aki Inoue wrote:

    > In that case, you can manually resize the field by tracking user's
    > editing actions via -controlTextDidChange:.
    > You have to specify setWraps:YES in order to prevent the field's own
    > scrolling behavior, of course.
    >
    > Aki
    >
    > On 2007/10/26, at 10:51, Alexander Cohen wrote:
    >
    >> I think the main problem is that the NSTokenField does not resize
    >> depending on it's content. What im really looking for is a
    >> NSTokenView subclassed from NSTextView instead of a NSTokenField
    >> subclassed from a NSTextField.
    >>
    >> AC
    >>
    >> On 26-Oct-07, at 1:28 PM, Aki Inoue wrote:
    >>
    >>> It would be great if you can describe how it doesn't work.
    >>>
    >>> Thanks,
    >>>
    >>> Aki
    >>>
    >>> On 2007/10/26, at 9:58, Alexander Cohen wrote:
    >>>
    >>>> I've been trying to get a NSTokenField to respond correctly in a
    >>>> NSScrollView but it just does not want to work. In IB, i put an
    >>>> NSTokenField on the window, then embed it in an NSScrollView. Is
    >>>> there anything else i need to do? I've tried messing around with
    >>>> some parameters but it's not working.
    >>>>
    >>>> Any help would be appreciated.
    >>>>
    >>>> thanks
    >>>>
    >>>> AC
    >>>
    >>

previous month october 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 31        
Go to today