• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Change in File Link Behavior in NSTextView Under Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Change in File Link Behavior in NSTextView Under Leopard


  • Subject: Re: Change in File Link Behavior in NSTextView Under Leopard
  • From: Douglas Davidson <email@hidden>
  • Date: Mon, 14 Jan 2008 10:43:34 -0800


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

_______________________________________________

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


  • Follow-Ups:
    • Re: Change in File Link Behavior in NSTextView Under Leopard
      • From: Mike Wright <email@hidden>
References: 
 >Change in File Link Behavior in NSTextView Under Leopard (From: Mike Wright <email@hidden>)

  • Prev by Date: Re: Advice re: "Rough-Cuts" version of "Cocoa Design Patterns"
  • Next by Date: Re: Cocoa classes -> Java?
  • Previous by thread: Change in File Link Behavior in NSTextView Under Leopard
  • Next by thread: Re: Change in File Link Behavior in NSTextView Under Leopard
  • Index(es):
    • Date
    • Thread