A question about NSPredicateEditor and NSPredicateEditorRowTemplate

  • Hello,
    - I'm using the NSPredicateEditor component in an application
    - I configured a few  NSPredicateEditorRowTemplate using Interface
    Builder
    - all my NSPredicateEditorRowTemplate use "Numbers" as right expression

    the text fields representing the "Numbers" of my
    NSPredicateEditorRowTemplate
    are very tight, I can just see 2 or 3 digits, while my users have to
    see wider numbers

    is it possible to modify the width of the NSTextField representing a
    "Number"
    in a NSPredicateEditorRowTemplate ?

    thank you for your help
    antonio ferraioli
  • On Jan 14, 2008, at 5:34 AM, Antonio Ferraioli wrote:

    > Hello,
    > - I'm using the NSPredicateEditor component in an application
    > - I configured a few  NSPredicateEditorRowTemplate using Interface
    > Builder
    > - all my NSPredicateEditorRowTemplate use "Numbers" as right
    > expression
    >
    > the text fields representing the "Numbers" of my
    > NSPredicateEditorRowTemplate
    > are very tight, I can just see 2 or 3 digits, while my users have
    > to see wider numbers
    >
    > is it possible to modify the width of the NSTextField representing
    > a "Number"
    > in a NSPredicateEditorRowTemplate ?

    Yes, but not yet in Interface Builder.  To do so programatically, get
    the row template, get the text field as the last member of the row
    template's templateViews array, and set its frame to the size you want.

    I hope that helps,
    -Peter
previous month january 2008 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