• 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
Crazy Behind the Scenes Hard-wiring in AppKit?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Crazy Behind the Scenes Hard-wiring in AppKit?


  • Subject: Crazy Behind the Scenes Hard-wiring in AppKit?
  • From: Seth Willits <email@hidden>
  • Date: Thu, 9 Dec 2004 18:27:04 -0800

Here's a strange one:

Realizing that I couldn't use existing document classes to accomplish tabbed documents, I started writing my own classes from scratch and have been working on it off and on when I have a few minutes of free time. Today I just noticed that if use the Document Types list in the target's Properties view, somehow AppKit watches for instances of those classes to be created and automatically calls methods on those classes (methods like makeWindowControllers, _handleDocumentFileChanges, isDocumentEdited), regardless of whether they're subclasses of NSDocument or not.

How weird is that? Or is it at all? I simply want to make a group of classes so that I can contain multiple documents within a single view, but on my path to doing so I'm finding a couple of short-circuit paths that AppKit is taking to make normal document applications simpler to write. However, it seems that they are imposing limitations on my own application which has nothing to do with the standard document classes.

I could just not use the document types list, but how else then is Finder supposed to know my application works with those documents?



Seth Willits
------------------------------------------------------------------------ ---
President and Head Developer of Freak Software - http://www.freaksw.com
REALbasic Guru at ResExcellence - http://www.resexcellence.com/realbasic


"All is not gold that glitters."
-- Miguel de Cervantes
------------------------------------------------------------------------ ---


_______________________________________________
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


  • Follow-Ups:
    • Re: Crazy Behind the Scenes Hard-wiring in AppKit?
      • From: "R. Scott Thompson" <email@hidden>
  • Prev by Date: Re: Forcing Black on RTF Text generated from NSAttributedString
  • Next by Date: Re: App doesn't open
  • Previous by thread: Crazy Behind the Scenes Hard-wiring in AppKit?
  • Next by thread: Re: Crazy Behind the Scenes Hard-wiring in AppKit?
  • Index(es):
    • Date
    • Thread