On 10/05/2012, at 7:12 PM, ecir hana wrote:
> This is what I try to do - subclass the
> NSDocumentController in applicationWillFinishLaunching:.
Subclassing NSDocumentController is extremely rare, and in almost every case,
unnecessary. If you're doing this as a matter of course because you thin
It works now! The problem was, that I was creating the window manager with
"init:", instead of the initializers from the docs.
Thank you all for the replies, they were very helpful!
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not p
On Wed, May 9, 2012 at 5:40 PM, Quincey Morris <
quinceymor...@rivergatesoftware.com> wrote:
> Very occasionally, it's necessary to subclass the NSDocumentController and
> force the singleton to your own subclass, but this is rare.
>
>
This is what I try to do - subclass the
NSDocumentController i
On Thu, May 10, 2012 at 2:24 AM, Graham Cox wrote:
>
> If you build a document-based app using Xcode's template, it will work
> correctly from the very first time you run it. Then you can see how it's
> put together, and all of these things will slowly become obvious.
>
I'm doing precisely this.
On 09/05/2012, at 7:45 PM, ecir hana wrote:
> I'm sorry for such basic questions I'm very new to all this.
We did warn you that taking yourself down this path wasn't going to be the best
idea. Now you're seeing why.
If you build a document-based app using Xcode's template, it will work
corr
On May 9, 2012, at 02:45 , ecir hana wrote:
> I apologize but I still don't quite understand. If I just
> implement saveDocument: at the document and leave document controller
> without it, the menu item is still disabled. When I add saveDocument: to
> the controller as well, it works. I mean, if
On 9 May 2012, at 4:45 AM, ecir hana wrote:
> When I were doing this in Xcode, I would just connect
> the menu item to the first responder and the document from IB would receive
> the saveDocument:, right?
"the document from IB" worries me. Your NIB should not include an instance of
your documen
On Tue, May 8, 2012 at 6:33 PM, Fritz Anderson wrote:
>
> I'll get this wrong if I answer in the amount of time I have. Look up
> "responder chain" in the Mac OS X documentation.
>
> To oversimplify:
>
> Menu commands typically go to the "first responder" — whatever has the UI
> focus. If the focu
On 8 May 2012, at 11:11 AM, ecir hana wrote:
> please, could you clarify one thing for me? In document-based apps, if I
> were to implement my own document controller, how would I trigger the
> saving of a file? In other words, in menu there is an item which fires
> "saveDocument:" and in document