Re: Quickest Way to Open an NSTextAttachment in NSTextView
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