discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextView, NSTextField and resizing


From: Gregory John Casamento
Subject: Re: NSTextView, NSTextField and resizing
Date: Sat, 30 Dec 2006 12:45:58 -0800 (PST)

Paddy,

Could you submit a bug on this so that I can examine the issue first hand?  
Also, if you could, please attach all of the files involved (e.g. the gorm and 
the nib file).

I would be very happy to look into the issue and help you out.

Thanks, GJC
--
Gregory Casamento
## GNUstep Chief Maintainer

----- Original Message ----
From: Paddy Smith <address@hidden>
To: address@hidden
Sent: Saturday, December 30, 2006 3:32:56 PM
Subject: NSTextView, NSTextField and resizing

Hi,

when I throw together a test app in gorm, the NSTextView does not behave as I
would expect, although it works okay from code.  instead it grows when resized
horizontally but will not shrink back.

I have a gorm file where the text simply does not resize at all, like
bug #15988.
I may have created it in gorm, but I suspect it is a conversion from a
cocoa nib,
so there may be a interoperability thing there.

an NSTextField with setAutoresizingMask: NSViewWidthSizable seems to show
some interesting behaviour when resized.  I would have expected the
insert point
to be at the right hand side when there was too much text to display, and the
start of the text at the left when there was enough room.  moving the focus on
and off the textfield seems to correct this.  I understand there is a
shared widget
for such cells, so this makes sense.  I have seen it in a state where
the widget
is not covering all the cell and/or (depending how you look at it) the
text in the
cell is in the wrong place, so that the same text is repeated twice.

I did try to use a textview instead of a textfield (I only have one!),
but I've yet
to figure out how to make it behave like a textfield (controlling the number of
lines of characters height in particular).  I would actually prefer to have the
option of multiple lines of input for this box, so it would be nice to
figure out a
bit better how to do this.  I've seen code that will do setstring:@"a
very long string", sizetofit,setstring:@"", but how to handle mulitple
lines ?

Anyway, I'm starting to waffle ...

practically instant bugfixes are, as always, gratefully received :-)
as are corrections, tips, and any reflections, explanations, etc on
textview vs textfield

Regards,
Paddy


_______________________________________________
Discuss-gnustep mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/discuss-gnustep







reply via email to

[Prev in Thread] Current Thread [Next in Thread]