• 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: receiving a file on app startup
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: receiving a file on app startup


  • Subject: Re: receiving a file on app startup
  • From: Torsten Curdt <email@hidden>
  • Date: Tue, 5 Feb 2008 16:26:34 +0100


On 05.02.2008, at 16:14, Davide Scheriani wrote:

him
did u succed with that task?
which selector/method do you need to implement when the application open the file?

Yes, you specify the class along with the file types on the target configuration. That class itself needs to be derived from NSDocument and have the methods


- (NSData *)dataRepresentationOfType:(NSString *)aType
- (BOOL)loadDataRepresentation:(NSData *)data ofType:(NSString *)aType

Then you are set :)

cheers
--
Torsten
_______________________________________________

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: receiving a file on app startup
      • From: Andrew Merenbach <email@hidden>
References: 
 >receiving a file on app startup (From: Torsten Curdt <email@hidden>)
 >Re: receiving a file on app startup (From: Adhamh Findlay <email@hidden>)
 >Re: receiving a file on app startup (From: Davide Scheriani <email@hidden>)

  • Prev by Date: Re: NSOutlineView and reload
  • Next by Date: CoreData: Can't modify an immutable model
  • Previous by thread: Re: receiving a file on app startup
  • Next by thread: Re: receiving a file on app startup
  • Index(es):
    • Date
    • Thread