Re: Change in File Link Behavior in NSTextView Under Leopard
Re: Change in File Link Behavior in NSTextView Under Leopard
- Subject: Re: Change in File Link Behavior in NSTextView Under Leopard
- From: Mike Wright <email@hidden>
- Date: Mon, 14 Jan 2008 18:20:39 -0500
On Jan 14, 2008, at 1:43 PM, Douglas Davidson wrote:
On Jan 12, 2008, at 11:20 AM, Mike Wright wrote:
Under Tiger, clicking one of these links acts just like double-
clicking the file icon in the Finder--it opens the file in its
default application.
Under Leopard, clicking a file link just shows the file in the
Finder.
I thought at first that Leopard might have added a System
Preference item to control this, but haven't found anything.
So, has the behavior of file links been changed in Leopard, or am I
seeing a flaw in my approach that just slipped through in Tiger?
The code involved is pretty simple.
This change was made for security reasons. As you note, the text
view's delegate can override this behavior.
In the case of a table view, the text view you are dealing with is
the field editor. This is shared by all of the controls in a
window, and its state is normally reset whenever the editing focus
changes. Ordinarily the control would be set up as the field
editor's delegate, so the natural thing to try would be to implement
-textView:clickedOnLink:atIndex: in a custom NSTableView subclass.
Douglas Davidson
Thanks. Worked like a charm.
Regards,
Mike Wright
http://www.idata3.com/
http://www.raccoonbend.com/
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden