discuss-gnustep
[Top][All Lists]
Advanced

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

Re: glyph generation errors in the layout manager


From: Fred Kiefer
Subject: Re: glyph generation errors in the layout manager
Date: Wed, 27 Jul 2011 18:57:08 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.2.18) Gecko/20110616 SUSE/3.1.11 Thunderbird/3.1.11

As Eric wrote this will only work, when the coding methods handle the linkTextAttributes and this is only true for keyed-coding. If you would be using NIB files then things should work. For keyed coding this gets handled by NSTextViewSharedData, a class we don't use for normal coding. Looks like somebody will have to implement all the missing attributes here :-(

On 27.07.2011 12:55, Riccardo Mottola wrote:
Hi,

I tried to edit the gorm file and re-save it, but I still have the
problem. Gorm doesn't find any problems in its file.

Perhaps Greg himself can be of help here, being the Gorm-Master.

Riccardo

Eric Wasylishen wrote:
Hi Riccardo,
The problem is Grr's NSTextView returns nil from -linkTextAttributes.
The nib/gorm probably needs to be updated, assuming the code in
-initWithCoder: can correctly read the linkTextAttributes from the
archive.

Eric

On 2011-07-22, at 12:43 PM, Riccardo Mottola wrote:

Eric,

I need to check better on SWK, but there it works. It was one of the
things Fred and I (well, mostly him...) fixed during the hacking
weekend.

Fred, tell us! What is going wrong? Should it work as it is?

Riccardo

Eric Wasylishen wrote:
I still do wonder why the links are not blue and underlined however.
Right now I think they'll only be blue and underlined if you set
those attributes by hand.

What we need is for NSLinkAttributeName to imply all of the
attributes in -[NSTextView linkTextAttributes] (blue and underlined)
as well as NSToolTipAttributeName (with the URL as the string) if
-[NSTextView displaysLinkToolTips] is YES. I'm not sure what the
best way to do that is.

It will probably involve using temporary attributes for the 'extra'
attributes implied by NSLinkAttributeName, but I'm not sure where we
should set/unset these.

Eric




reply via email to

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