• 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: Quickest Way to Open an NSTextAttachment in NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quickest Way to Open an NSTextAttachment in NSTextView


  • Subject: Re: Quickest Way to Open an NSTextAttachment in NSTextView
  • From: Matt Neuburg <email@hidden>
  • Date: Wed, 02 Mar 2005 08:07:15 -0800

On Wed, 02 Mar 2005 06:51:50 +0000, "Kirt Cathey"
<email@hidden> said:

> NSTextAttachment *myAttachment = [[[NSTextAttachment alloc] init]
>autorelease];
> myAttachment = [cell attachment];

That makes no sense. In the first line you create a blank NSTextAttachment;
in the second line you throw it away. So why bother?

> NSWorkspace *myWorkspace = [[NSWorkspace alloc]init];

That is not how you work with the workspace. There is already a singleton
workspace; use the appropriate class method to access it. m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide
<http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt>



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Quickest Way to Open an NSTextAttachment in NSTextView
      • From: "Kirt Cathey" <email@hidden>
    • Re: Quickest Way to Open an NSTextAttachment in NSTextView
      • From: "Kirt Cathey" <email@hidden>
  • Prev by Date: strange problem
  • Next by Date: Re: strange problem
  • Previous by thread: Re: Quickest Way to Open an NSTextAttachment in NSTextView
  • Next by thread: Re: Quickest Way to Open an NSTextAttachment in NSTextView
  • Index(es):
    • Date
    • Thread