Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.mac.programmer.help > #19

Open any type of file

From Aaron Spiteri <azzmosphere(at)gmail.com>
Newsgroups comp.sys.mac.programmer.help
Date 2011-04-26 22:58 +1000
Message-ID <2011042622580137939-azzmosphereatgmailcom@news.netspace.net.au> (permalink)
Subject Open any type of file

Show all headers | View raw


Hi All,

this may be a trivial question but I am a Cocoa newbie.  I am writing a 
dopcument-based application that should be able to open any kind of 
file.  To do this I have sub-classed the NSDocumentController and 
overloaded the URLsFromRunningOpenPanel function.

The problem is that readFromData method inside the NSDocument class is 
never called.  My assumption is that this is because the file 
extensions that I am trying to open are not in the plist file, but I am 
not sure how I can add file extensions on the fly to this application.  
It seems that openDocumentWithContentsOfURL is never reached.

Has anyone tried to doing this before,  what did you do to resolve the problem?
-- 
....
"When asked what he would like on his tomb stone he said more bass"

Back to comp.sys.mac.programmer.help | Previous | Next | Find similar


Thread

Open any type of file Aaron Spiteri <azzmosphere(at)gmail.com> - 2011-04-26 22:58 +1000

csiph-web