Sweet Sweet!!! Magic!!! the :
NSError *error;
MyDocument *newDoc = [[NSDocumentController
sharedDocumentController] openUntitledDocumentAndDisplay: YES error:
&error];
was the key, thank you so much Quincey!!! This both instantiates and
lets me controll what is created!
If you're looking at the same split view as I am (main window), it
appears that they're just using a horizontal split view as the right
subview in a vertical split view. There doesn't seem to be a resize
handle that adjusts both directions.
On 31-Dec-08, at 5:27 PM, Quincey Morris wrote:
On Dec 31, 2008, at 13:49, Richard Ashwell wrote:
1) I am/was creating my document class "programatically" like:
(Note Typed in email, and in my project MyDocument is actually named
something else)
MyDocument *newDoc = [[MyDocument alloc] init];
[newDoc importData:data];
Not so good. Wh
More details:
Ok I, I think I have a lot to learn before I can call
[NSDocumentController openUntitledDocumentAndDisplay:error], in the
mean time I pulled out the extra call to makeWindowControllers and
traced, When the document gets create via the New menu item the
makeWindowControllers
Quincy thanks for your reply, ok I was going to start sending you tons
of little snipits from my code, and I had the whole email, typed but
decided to reread your comments carefully.
In a nutshell:
1) I am/was creating my document class "programatically" like: (Note
Typed in email, and i
Ok some more details:
I removed the subclassing of NSTextView entirely just to eliminate
that as any sort of source for the problem so now:
In my document nib I have a regular NSTextView, bound via IBOutlet to
a variable in the document class. However still the NSTextView only
responds t
On Dec 31, 2008, at 11:58, Richard Ashwell wrote:
4) The next task was based on a selection in the database table, I
wanted to programatically open a document and pre populate it from
the data.
It's not clear what you mean by "programmatically open a document".
Are you invoking the same a
Ok,
First this is cry for help. Second I suck at the cocoa dev thing so I
anticipate that I won't even describe this very well, please forgive
my lack of skill in Cocoa Dev, but here goes:
I have built a relatively complex application, but have dug a whole I
can't fix or dig out of. I b