Re: Crazy Behind the Scenes Hard-wiring in AppKit?
Re: Crazy Behind the Scenes Hard-wiring in AppKit?
- Subject: Re: Crazy Behind the Scenes Hard-wiring in AppKit?
- From: Seth Willits <email@hidden>
- Date: Thu, 9 Dec 2004 21:16:17 -0800
On Dec 9, 2004, at 8:45 PM, R. Scott Thompson wrote:
Apart from the fact that the idea of having multiple documents in the
same window reeks of MDI frames and makes me cringe (I'm not a fan of
tabbed documents... except, perhaps, in browsers), I don't find it to
be particularly weird. Given the fact that Objective-C is a
dynamically dispatched language, I don't find it any weirder than
having the NSTableView data source methods called on a class that
hasn't inherited behavior from some theoretical superclass of all
table view data sources.
Ok, I can see where that comes from. I was assuming though that being
listed as the document's class wouldn't have any affect on the behavior
of the application unless it was using the document classes. It seems
strange that NSDocumentController, a class with a purpose to deal with
creating documents, would not be used to call methods on the documents
when created, and instead the behavior is hardwired into AppKit.
Cocoa expects any object that claims to be a document to respond to
certain messages. It might be nice, however, if those messages were
documented somewhere. Is the system throwing "Doesn't respond to"
exceptions or is it just innocuously calling messages on your class?
I get "selector not recognized" messages in the run log.
If you can identify what services are actually calling for that
information, you might be able to kill off and replace those
additional services. Unfortunately, that means more work for you :-(
I don't have a clue where to begin there and I'm afraid it's more
trouble than it's worth.
Another question: Do I need to specify the class in the document types
list? Can I put that information in a separate plist so as not to have
the framework interfere with what I want to do and leave the other
document information in place?
Seth Willits
------------------------------------------------------------------------
---
President and Head Developer of Freak Software - http://www.freaksw.com
REALbasic Guru at ResExcellence - http://www.resexcellence.com/realbasic
"Great spirits have always encountered violent opposition from mediocre
minds."
-- Albert Einstein
------------------------------------------------------------------------
---
_______________________________________________
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