• 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: NSDocumentController Subclass Response
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDocumentController Subclass Response


  • Subject: Re: NSDocumentController Subclass Response
  • From: Ronnie O <email@hidden>
  • Date: Thu, 30 Jun 2005 10:05:17 -0400

Gotcha, I should just be happy with that I am too paranoid!  I know
this stuff going on in the background will haunt me later.  Heres some
more info I came up with:

> > Is the behavior I am expecting specific to
> > "Document-based applications"?
>
> Most likely not.

You are right, it is not specific to "Document-based Apps", but for
some reason if NSDocumentController is subclassed and connected as
File's Owner's delegate, this behavior of menu validation does not
occur.  I expected it to occur inherently due to the fact that the
subclass inherits the newDocument: method.  Even when I add the
newDocument: method to the imp. and header files, menu validation
still does not occur.  If I use a subclass of NSObject in the same
manner, menu validation does occur!!  So the menu validation process
does not like the subclassing of NSDocumentController in a "cocoa
application" project.  Why it should care that it is a NSDocCont
subclass, I don't know!  It responds to the method (by inheritance and
by my manual insertion of the method), shouldn't that be enough??
Thats what i have experimentally narrowed it down to, but I still am
not sure why the NSDocumentController subclass is not validating the
"New" menu item.  I am obviously not understanding the inner workings
of a "document-based app" and will probably now just create all my own
document methods in my nsobject subclass.  My whole point of
subclassing NSDocController was b/c I thought it would handle and
recognize menu and document methods more readily.  How would I use
NSDocumentController or a subclass thereof in this case?
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >NSDocumentController Subclass Response (From: Ronnie O <email@hidden>)
 >Re: NSDocumentController Subclass Response (From: Seth Willits <email@hidden>)
 >Re: NSDocumentController Subclass Response (From: Ronnie O <email@hidden>)
 >Re: NSDocumentController Subclass Response (From: Seth Willits <email@hidden>)

  • Prev by Date: Is there someway to disable NSComboBoxCell's drop down menus?
  • Next by Date: Re: Is there someway to disable NSComboBoxCell's drop down menus?
  • Previous by thread: Re: NSDocumentController Subclass Response
  • Next by thread: Doc problem? File mgmt...
  • Index(es):
    • Date
    • Thread