discuss-gnustep
[Top][All Lists]
Advanced

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

Re: does GORM no longer use TextView?


From: David Chisnall
Subject: Re: does GORM no longer use TextView?
Date: Sun, 18 Nov 2007 12:21:52 +0000

When GORM creates an NSTextView, it is really containing an NSScrollView containing an NSTextView. Some applications will want to modify properties of the scroll view, some of the text view, and so both are accessible. It makes sense once you understand the view hierarchies employed by most of the common OpenStep view objects (particularly the NSScrollView/NSClipView interaction).

The only problem I've had with it in GORM is that it's sometimes very hard to attach an outlet to an interior nested view. As Saso says, this can be worked-around by using -documentView, but that is just a hack, not a solution (and not needed on OS X where IB makes it easy to drag to nested views). IB 3 has a really nice outline layout which I'd love to see replicated in GORM where you get a schematic display of the view hierarchy and can easily connect up actions and outlets.

David

On 18 Nov 2007, at 12:15, Mark Grice wrote:

Yes! You are right... when I double-click the widget that is on the
window, the inspector shifts to NSTextView.

I don't know what the expected behavior is, so I don't know if it is a
bug, or not... But at least I know how to get to the TextView
properties now... thanks!




On Nov 18, 2007 3:30 AM, Sas(o Kiselkov <address@hidden> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

Try double clicking the widget. If that doesn't work, it's probably a
bug in Gorm. You should still be able to access text view during program run time through the NSScrollView outlet using [scrollView documentView].

- --
Saso


Mark Grice wrote:
I am not sure if I am asking this question in the right place... (If
not, please tell me where I go for these kinds of questions...)

I am trying to follow an old tutorial I found here:

http://student.fiit.stuba.sk/~kiselkov04/docu-demo/demo.html

It is a simple Document handler. The problem is that when he selects
the widget on the Data Palette (See PNGS 1 and 2 attached) it is a
NSTextView.

However, while I am following along, and  I select the *same* widget
and pull it onto the document window, it is an NSScrollView type. And
the trouble is from there the demo falls apart, since he invokes a
method which is supported by TextView, but not NSScrollView.

Is this right? Gorm changed the widget type? Is there some way to
over-ride that?


------------------------------------------------------------------------


------------------------------------------------------------------------


------------------------------------------------------------------------


------------------------------------------------------------------------

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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHP/gvakxhuWWzY78RA+chAJ90+V6ZJBHd7e3Co4A6UFut/Thm7wCePvrs
UQK9I8uudcSWLz3zADPSNXI=
=Nb4z
-----END PGP SIGNATURE-----



_______________________________________________
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]