Skip navigation.
 
mlRe: A question about NSPredicateEditor and NSPredicateEditorRowTemplate
FROM : Peter Ammon
DATE : Mon Jan 14 19:23:16 2008

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

Related mailsAuthorDate
mlA question about NSPredicateEditor and NSPredicateEditorRowTemplate Antonio Ferraioli Jan 14, 14:34
mlRe: A question about NSPredicateEditor and NSPredicateEditorRowTemplate Peter Ammon Jan 14, 19:23