• 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: Disabling Display of JPG and PDF Files in NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Disabling Display of JPG and PDF Files in NSTextView


  • Subject: Re: Disabling Display of JPG and PDF Files in NSTextView
  • From: "Kirt Cathey" <email@hidden>
  • Date: Thu, 15 Sep 2005 19:25:23 +0000

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:
This email sent to email@hidden


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

  • Prev by Date: Re: Disabling Display of JPG and PDF Files in NSTextView
  • Next by Date: Re: NSDatePicker / NSDatePickerCell
  • Previous by thread: Re: Disabling Display of JPG and PDF Files in NSTextView
  • Next by thread: Adding hit test to circleview question.
  • Index(es):
    • Date
    • Thread