Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Disabling Display of JPG and PDF Files in NSTextView



Oops! Isn't that the third? Fourth time? :-))

I am encoding them and throwing them where the user wants them.

- (NSData *)dataRepresentationOfType:(NSString *)aType
{
[self receiveHandleWorkPapers:currentRow];

NSMutableArray *saveArray = [[NSMutableArray alloc] initWithObjects:myOutlineView, rootNode, customTypesArray, currentUser, replicaArray, nil];

return [NSKeyedArchiver archivedDataWithRootObject:saveArray];

[saveArray release];
}


Within the object rootNode is where a couple of objects are embedded and coded (KVC), which hold all of the text data.

receiveHandleWorkPapers: is a routine that I run at various key points throughout the document to refresh view data, make sure data is saved, and do some other cleanup in case the user does not save changes to non-text view parts of the document.

Regards,
-------------------------
Kirt S. Cathey
http://www.bizolutions.com
-------------------------




From: Douglas Davidson <email@hidden>
To: Kirt Cathey <email@hidden>
CC: email@hidden, email@hidden
Subject: Re: Disabling Display of JPG and PDF Files in NSTextView
Date: Thu, 15 Sep 2005 12:16:35 -0700


On Sep 15, 2005, at 12:10 PM, Kirt Cathey wrote:

When I specify and NSTextAttachmentCell for the data to be displayed in, none of the data that is stored in the NSTextView is preserved so that when I re-open the document, the icons appear. However, when I go the regular route without specifying a custom NSTextAttachmentCell (with Excel or Word files, for example) all of the icon data and filewrapper data is preserved. What is the defference in the way that NSTextView (or NSCoder?) handles these two different scenarios?


You still haven't described how you are saving your documents.

Douglas Davidson


_________________________________________________________________
無料でメールボックス250MBの 「MSN Hotmail」 http://www.hotmail.com/


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

This email sent to email@hidden
References: 
 >Re: Disabling Display of JPG and PDF Files in NSTextView (From: Douglas Davidson <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.