Ask a Question related to Mac Programming, Design and Development.
-
Eric Lada #1
Getting NSDocument to load a file into current window
Hi!, I am new to Cocoa, and was hopeing someone could help me with a little problem I was
having. I am writing a simple hex editor, and would like to be able to drag any file into
my NSDocument subclass, and have that document displayed in hex format.
However whenever, I drag a document Into the window, or even just use the Open menu item,
a NEW NSDocument opens up, with the file displayed. I would like to be able to display the
file in the current window. What is the best Cocoa approved methode of doing this?
Currently I am useing loadDataRepresentation:(NSDAta *)data ofType:(NSString *)aType
to get the behavior I don't want.
Thanks for any assistance you can give.
-Eric
Eric Lada Guest
-
Page_Load not fired when window.open used to load window.
Hello John, Did you mean that the problem only happens after you upgrade to VS 2003 and framework 1.1? Does the problem exist in VS 2002 and... -
load php or html file into flash pop up window ?
Hi, Is it possible to load a web page or PHP file into a pop up window, movieclip or dynamic text box ? I have tried all 3 but cannot get it to... -
play 'outro' of current MC then load next MC on button
Hi I need a little help with this please: On the root of my movie I have a empty container MC called 'container'. I have a number of MC's that... -
Customize current browser window
Hello, I would like to know if it's possible to customize the current browser window. I know it's possible to open a new window without the... -
load a .swf file within current .swf as per value of external text file
Hi ! I am confused at a point and need help. I just want to load a .swf file within my current .swf file as per the value the external text... -
matt neuburg #2
Re: Getting NSDocument to load a file into current window
In <slrnblqn99.2ta.ericlada@eric-ladas-computer.local> Eric Lada wrote:
Open means open a new document. If that isn't the behavior you want - e.> Hi!, I am new to Cocoa, and was hopeing someone could help me with a
> little problem I was having. I am writing a simple hex editor, and
> would like to be able to drag any file into my NSDocument subclass,
> and have that document displayed in hex format. However whenever,
> I drag a document Into the window, or even just use the Open menu item,
> a NEW NSDocument opens up, with the file displayed. I would like to
> be able to display the file in the current window. What is the best
> Cocoa approved methode of doing this?
g. you just want a single window at all times - then you aren't using a
document-oriented paradigm, and you should not be using a document-based
application as the basis of your project. m.
--
matt neuburg, phd = [email]matt@tidbits.com[/email], [url]http://www.tidbits.com/matt[/url]
REALbasic: The Definitive Guide! 2nd edition!
[url]http://www.amazon.com/exec/obidos/ASIN/0596001770/somethingsbymatt[/url]
Subscribe to TidBITS. It's free and smart.
matt neuburg Guest



Reply With Quote

